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
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?
Nehal J Wani
Dnsmasq-discuss mailing list