mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-13 14:37:01 +00:00
If several different interfaces share same ipv4 address on different subnets (i.e. eth0 192.168.1.1/24 + eth1 192.168.1.1/16), miniupnpd may pick any one of them, possibly wrong one w/o respecting exact listening_ip interface. syslog will contain something similar to: miniupnpd: sendto(udp_notify=6, 192.168.1.1): No such device miniupnpd: sendto(udp_notify=6, 192.168.1.1): No such device miniupnpd: try_sendto(sock=6, len=464, dest=239.255.255.250:1900): sendto: No such device miniupnpd: try_sendto(sock=6, len=464, dest=239.255.255.250:1900): sendto: No such device miniupnpd: try_sendto failed to send 11 packets Fix that with specifying exact outgoing mcast interface for each notify socket with help of IP_MULTICAST_IF/mreqn struct. Since OpenAndConfSSDPNotifySocket() now takes lan_addr_s struct, OpenAndConfSSDPNotifySocketIPv6() was similary changed for api consistency.
MiniUPnP project (c) 2006-2019 Thomas Bernard webpage: http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/ github: https://github.com/miniupnp/miniupnp freecode: http://freecode.com/projects/miniupnp contact: miniupnp@free.fr This directory contain the miniUPnP daemon software, aka miniUPnPd. This software is subject to the conditions detailed in the LICENSE file provided with this distribution. The miniUPnP daemon is an UPnP IGD (internet gateway device) which provide NAT traversal services to any UPnP enabled client on the network. See http://www.upnp.org/ for more details on UPnP. During the year 2011, support for IGD v2 has been added. In 2012, IGD v2 WANIPv6FirewallControl has been implemented. IGD2 is still not enabled by default because of interoperability issues. In addition to UPnP IGD, miniUPnPd supports NAT-PMP and PCP : See information about NAT Port Mapping Protocol (NAT-PMP) here : http://miniupnp.free.fr/nat-pmp.html NAT-PMP is the precursor of Port Control Protocol (PCP, RFC 6887). In 2013, support for PCP has been added too. Read the INSTALL file for instructions to compile, install and configure miniupnpd on your system. Report bugs to miniupnp@free.fr or on the web forum https://miniupnp.tuxfamily.org/forum/ or using https://github.com/miniupnp/miniupnp/issues Thomas Bernard