summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/dhcpd.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-08-22 13:53:37 +0000
committerjhb <jhb@FreeBSD.org>2012-08-22 13:53:37 +0000
commit3ef98be9d9110aabdd2cd13be8798526e78bdb12 (patch)
tree40adcea0d3b835e67f66b619bdc1b56f56f2aeac /sbin/dhclient/dhcpd.h
parent7ad4e5cce6b4edbdceab15ae68014fcba7de599d (diff)
downloadFreeBSD-src-3ef98be9d9110aabdd2cd13be8798526e78bdb12.zip
FreeBSD-src-3ef98be9d9110aabdd2cd13be8798526e78bdb12.tar.gz
Revert r239356 and use an alternate algorithm.
First, don't exit when the link goes down on an interface. Instead, teach dhclient to track changes in link state and to enter the reboot state when the link on an interface goes up causing dhclient to attempt to renew its existing lease. Second, remove the change I added to clear the old lease when dhclient exits due to an error (such as ifconfig down). If an interface is using autoconfiguration it should keep its autoconfiguration as much as possible. If the next time it needs a configuration it is able to reuse the previous autoconfiguration, then leaving the settings intact allows existing connections to survive temporary outages, etc. PR: bin/166656 MFC after: 1 month
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r--sbin/dhclient/dhcpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h
index 1334a7c..4762cbd 100644
--- a/sbin/dhclient/dhcpd.h
+++ b/sbin/dhclient/dhcpd.h
@@ -208,6 +208,7 @@ struct interface_info {
int errors;
int dead;
u_int16_t index;
+ int linkstat;
};
struct timeout {
OpenPOWER on IntegriCloud