Re: [Dnsmasq-discuss] dhcp-script: environment var DNSMASQ_INTERFACE not always set

2023-08-08 Thread shashikumar Shashi
Hi, “ *Acknowledge on "Client moves".* *The 'releases IP' is probably* *something like "I'm unaware that IP stands for Internet Protocol* *and want to try how far I can get by being vague how the release* *of the DHCP lease was done"* —> Client is executing “dhclient -4 eth1 -r” to release

Re: [Dnsmasq-discuss] dhcp-script: environment var DNSMASQ_INTERFACE not always set

2023-08-07 Thread Geert Stappers
On Sun, Aug 06, 2023 at 08:00:11PM +, Bastian Bittorf wrote: > Hello hackers, > > according to 'man dnsmasq' the var DNSMASQ_INTERFACE stores the name > of the interface on which the request arrived; this is not set for "old" > actions when dnsmasq restarts. > > all this in done in src/helper

[Dnsmasq-discuss] dhcp-script: environment var DNSMASQ_INTERFACE not always set

2023-08-06 Thread Bastian Bittorf
Hello hackers, according to 'man dnsmasq' the var DNSMASQ_INTERFACE stores the name of the interface on which the request arrived; this is not set for "old" actions when dnsmasq restarts. all this in done in src/helper.c: my_setenv("DNSMASQ_INTERFACE", strlen(data.interface) != 0 ? data.interface