Exponential Lease Time

Simon Hobson dhcp1 at thehobsons.co.uk
Thu Sep 6 06:48:29 UTC 2012


Glenn Satchell wrote:
>This is going to increment on every packet from the client, so perhaps you
>need to test for the request-type using option dhcp-message-type. See
>dhcp-options man page for possible values. Perhaps only increment on
>DHCPREQUEST type? So a big if statement around the sections that increment
>renewal.
>
>if option dhcp-message-type = 3 {
>   if renewal = 3 {
>     ...
>   }
>} else {
>   default ....
>}

I was thinking that perhaps detect message type Discover and set 
renewal to 0. A device that is stable on the network won't be sending 
Discover packets.

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.


More information about the dhcp-users mailing list