summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-07-28 08:30:11 +0000
committermbr <mbr@FreeBSD.org>2003-07-28 08:30:11 +0000
commit6416064bd673071db7aee16cb9b737f8ca527e5b (patch)
tree1c6e259ba89a48fad62b7203a5d3cac6e6ac42fe /sbin/dhclient
parent40b6665d85a1da035de6a350ced06586632d9a59 (diff)
downloadFreeBSD-src-6416064bd673071db7aee16cb9b737f8ca527e5b.zip
FreeBSD-src-6416064bd673071db7aee16cb9b737f8ca527e5b.tar.gz
Enable dhclient to poll the interface state and send only
requests if the interface has an active link. This is a great benefit if you often change networks with your laptop and you do not like to kill/restart dhclient all the time. Changes are automatically detected and the link is refreshed. The change allows us to start dhclient in background mode Enable dhclient to poll the interface state and send only requests if the interface has an active link. This is a great benefit if you often change networks with your laptop and you do not like to kill/restart dhclient all the time. Changes are automatically detected and the link is refreshed. The change allows us to start dhclient in background mode while the network cable is not plugged in. To control the polling interval, the option -i has been introduced. It takes seconds as parameter, the minimum is one second, the default is five seconds. Polling is done in seconds, not microseconds, because dhclient does internally work with timeouts in seconds. This change will be part of the next major ISC-dhcpd release. Tested by: bms, imp, and many many others. Reviewed by: murray, eivind, dhclient folks
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient/Makefile.inc b/sbin/dhclient/Makefile.inc
index 7b2738d..d78692d 100644
--- a/sbin/dhclient/Makefile.inc
+++ b/sbin/dhclient/Makefile.inc
@@ -3,7 +3,7 @@
MAINTAINER= murray
WARNS= 0
-CFLAGS+= -I${DIST_DIR}/includes
+CFLAGS+= -I${DIST_DIR}/includes -DENABLE_POLLING_MODE
CLIENTBINDIR= /sbin
RUNDIR= /var/run
OpenPOWER on IntegriCloud