[Dnsmasq-discuss] Query: DNSMASQ_LEASE_EXPIRES

Nehal J Wani nehaljw.kkd1 at gmail.com
Wed Dec 21 09:30:56 GMT 2016


On Thu, Sep 22, 2016 at 3:21 PM, Nehal J Wani <nehaljw.kkd1 at gmail.com> wrote:
> 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?
>

Ping! :-)


-- 
Nehal J Wani



More information about the Dnsmasq-discuss mailing list