miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What needs to happen on a network change event?

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
NickH



Joined: 10 Feb 2018
Posts: 18

PostPosted: Fri Aug 24, 2018 7:49 am    Post subject: What needs to happen on a network change event? Reply with quote

Currently I have miniupnpd configured to use interfaces by interface name. If the external interface has a dynamic IP and the IP changes, does it matter to miniupnpd or do I have to restart it?

The same question goes for the LAN interfaces in the case that the user reconfigures one, changing the IP. Does miniupnpd need restarting?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1451

PostPosted: Fri Aug 24, 2018 11:34 am    Post subject: Reply with quote

miniupnpd should detect WAN interfaces changes.
But this code is very OS dependend, so it might not work for you. In that cas you can send the SIGUSR1 signal to miniupnpd to force the IP address change notification.

But miniupnpd is not designed to handle LAN address changes. In that case miniupnpd need restarting
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1451

PostPosted: Fri Aug 24, 2018 11:40 am    Post subject: Reply with quote

https://github.com/miniupnp/miniupnp/blob/ef179a45e3e65390aa4227fdad6ff3449acf1720/miniupnpd/bsd/ifacewatcher.c#L100
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.