Re: [Dnsmasq-discuss] [PATCH] Refresh cached socket fd if the interface index changed

2016-08-28 Thread Simon Kelley
Patch applied, with a few tweaks, mainly for style consistency, but one to avoid passing strings of length zero to if_nametoindex(). Many thanks. Cheers, Simon. On 25/08/16 16:10, Beniamino Galvani wrote: > The socket bound to a specific interface in the daemon->sfds cache is > reused also

[Dnsmasq-discuss] [PATCH] Refresh cached socket fd if the interface index changed

2016-08-25 Thread Beniamino Galvani
The socket bound to a specific interface in the daemon->sfds cache is reused also when the interface disappears and is created again, causing resolution problems. This problem can be seen when connecting to VPNs with NetworkManager: when the VPN is connected NM pushes through D-Bus a