dhclient - Tweak leases file handling.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sat, 4 Aug 2012 18:36:23 +0000 (20:36 +0200)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 15 Aug 2012 01:22:18 +0000 (03:22 +0200)
commit377552a8ce236f593b323d63c8f067869550fc50
tree90420f35353e96f8c2d9ea45cb247f98e97f49d8
parent3c8fe83fd02fbe260e34edcdf3e34ae3f81781cc
dhclient - Tweak leases file handling.

- Write out new leases file every time a lease is obtained. i.e. don't
  append 20 leases before cleaning it up.
- Write new leases file after calling dhclient-script to implement
  new info. Gets interface configured first, and makes it more likely
  the leases file reflects most current configuration.

Taken-from: OpenBSD
sbin/dhclient/dhclient.c
sbin/dhclient/dhcpd.h