[Dnsmasq-discuss] Query: DNSMASQ_LEASE_EXPIRES

Nehal J Wani nehaljw.kkd1 at gmail.com
Thu Sep 22 10:51:31 BST 2016


Hi!

According to the man page of dnsmasq, DNSMASQ_LEASE_EXPIRES stores the
time of lease expiry and DNSMASQ_TIME_REMAINING stores the number of
seconds until expiry and these are passed to the script specified to
the option --dhcp-script.

Consider the scenario when the configuration has specified 'infinite'
as the value of <lease time> for a particular dhcp-range. In this
case, the value of DNSMASQ_LEASE_EXPIRES is always 0 and
DNSMASQ_TIME_REMAINING is not even present. Is this an expected
behaviour?

Another query: the value of lease-time is stored in an unsigned int
while parsing the options and it is different in struct script_data.
Is there a specific reason behind choosing different datatypes?

Cheers!
Nehal J Wani



More information about the Dnsmasq-discuss mailing list