*** From dhcp-server -- To unsubscribe, see the end of this message. ***

DHCP Beta1 v2.0 pl26 and v3.0

I was looking at the DHCP server code to see how it handles if the
default-lease-time is greater than the max-lease-time.  From looking at the
code, dhcp.c ack_lease(), it appears that after checking for a client
supplied lease time option and there isn't one, it sets the lease_time to
the default lease time.  It then checks to make sure that the lease_time is
not less then the min-lease-time  and adds the current time to get the
offered_expiry time which becomes lt.ends. However if the default-lease-time
is greater than the max-lease-time the default-lease-time is given to the
client and not the max-lease-time (in v3.0).  In beta1 v2.0 pl26 the client
does get the correct lease (max-lease-time if default-lease-time is greater
then max-lease-time but the dhcpd.leases will have the default-lease-time as
its ends time).  Ted, Am I reading this correctly?


Jack Wong
Process Software Corporation


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED]   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------

Reply via email to