cvs commit: src/contrib/isc-dhcp/client dhclient.c
src/contrib/isc-dhcp/includes dhcpd.h
Martin Blapp
mbr at FreeBSD.org
Thu Aug 7 00:27:16 PDT 2003
mbr 2003/08/07 00:27:14 PDT
FreeBSD src repository
Modified files:
contrib/isc-dhcp/client dhclient.c
contrib/isc-dhcp/includes dhcpd.h
Log:
- Fix the polling code to work with media settings in dhclient.conf.
- Rename linkstatus to linkstate which is more correct.
- Sort any leases each time we loose and regain link. With the first
version we spammed the dhclient.leases file.
- When there was no link on a interface, polling has been done twice.
This has been fixed with a bigger sleep interval.
- interface_active() now returns only a assumed state of the link.
If we are using media settings, we cannot be sure that the link
actually works. That means we assume that the link is working and
continue to send requests as usual on the interface and loop over
all possible media options. Polling is still done. If your interface
gets suddenly link, dhclient will send a dhcp discover request.
After all media settings have been tried a few times, dhclient will
sleep. If one does change networks very often, it can help to set the
"retry timeout" to a low value like 100 seconds. The default is over
six minutes.
Tested by: Larry Rosenman <ler at lerctr.org>, imp
Revision Changes Path
1.29 +176 -36 src/contrib/isc-dhcp/client/dhclient.c
1.5 +13 -2 src/contrib/isc-dhcp/includes/dhcpd.h
More information about the cvs-src
mailing list