View previous topic :: View next topic |
Author |
Message |
test0x01
Joined: 29 Dec 2011 Posts: 3
|
Posted: Thu Dec 29, 2011 6:44 am Post subject: Allow Specify Network Interface to Work ON |
|
|
upnpc has a -m option to allow sending SSDP multicast packets.
But, the situation I met is that I have more than two WAN interfaces having same IP address. So, when I run unpnc, the interface it works on is determined by iptables.
I would suggest adding another option to allow specify network interface.
E.g.
upnpc -l -i wlan0
upnpc -i wlan0 -a 192.168.0.2 22 22 TCP
Thank you! |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Mon Jan 02, 2012 10:56 am Post subject: |
|
|
That would be nice indeed, but the problem is the code is using setsockopt(..., IPPROTO_IP, IP_MULTICAST_IF, ...) which is taking an IP address as argument. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
test0x01
Joined: 29 Dec 2011 Posts: 3
|
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Sat Jan 07, 2012 10:19 am Post subject: Re: Could you please see if this solution works |
|
|
Thanks, I tested and it works on Linux but "struct ip_mreqn" is not defined on all systems.
For example it is not available on OpenBSD. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
|
Back to top |
|
|
test0x01
Joined: 29 Dec 2011 Posts: 3
|
Posted: Mon Jan 09, 2012 4:43 am Post subject: |
|
|
thank you. I am so glad that it works. |
|
Back to top |
|
|
|