summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp/includes
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 /contrib/isc-dhcp/includes
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 'contrib/isc-dhcp/includes')
-rw-r--r--contrib/isc-dhcp/includes/dhcpd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/isc-dhcp/includes/dhcpd.h b/contrib/isc-dhcp/includes/dhcpd.h
index 891678c..0c98e82 100644
--- a/contrib/isc-dhcp/includes/dhcpd.h
+++ b/contrib/isc-dhcp/includes/dhcpd.h
@@ -41,6 +41,10 @@
* ``http://www.nominum.com''.
*/
+#ifndef lint
+"$FreeBSD$\n";
+#endif /* not lint */
+
#ifndef __CYGWIN32__
#include <sys/types.h>
#include <netinet/in.h>
@@ -778,6 +782,8 @@ struct interface_info {
unsigned remote_id_len; /* Length of Remote ID. */
char name [IFNAMSIZ]; /* Its name... */
+ int linkstatus; /* Link status */
+ int ieee802; /* True if media is ieee802 */
int index; /* Its index. */
int rfdesc; /* Its read file descriptor. */
int wfdesc; /* Its write file descriptor, if
@@ -1853,6 +1859,9 @@ void send_release PROTO ((void *));
void send_decline PROTO ((void *));
void state_reboot PROTO ((void *));
+#ifdef ENABLE_POLLING_MODE
+void state_link PROTO (());
+#endif
void state_init PROTO ((void *));
void state_selecting PROTO ((void *));
void state_requesting PROTO ((void *));
OpenPOWER on IntegriCloud