Adaptive lease time patch

Ted Lemon mellon at fugue.com
Fri Sep 9 23:38:33 UTC 2005


On Sep 9, 2005, at 4:21 PM, Christof Chen wrote:
> How would
> subclassing work in such an environment?

You just identify the local machines by their network MAC address.

> Yes, but probably the lease will not be scheduled for renewal while  
> the horde
> is in (the leases are usually long) and it is no problem if the  
> leases are
> short during exceptional circumstances anyway - the regular  
> machines get
> longer leases as soon as the visitors leave.

As long as you are happy with the local change, and don't mind the  
risk of local machines sometimes getting short leases, your change  
should be fine.

I would suggest that in your if statement you make sure that lease- 
 >pool is not null - I think in the case of a static lease it would  
be, and while you probably don't have any static leases now, you  
don't want dhcpd to dump core when someone hacks the configuration  
later.   :')



More information about the dhcp-hackers mailing list