aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-03-20 17:37:00 +0000
committerEric Andersen <andersen@codepoet.org>2006-03-20 17:37:00 +0000
commit28a6afe975c65ee25e5739b1d52eb24b2a8f27c9 (patch)
treec63bdffb45c6d2e1fd1d00b2083a97b38833a7c0 /networking/udhcp/dhcpc.h
parentc30f445b08e811ec7e339e7efad8f7cd47c3ad59 (diff)
downloadbusybox-28a6afe975c65ee25e5739b1d52eb24b2a8f27c9.tar.gz
Roy Walker writes:
Here is a patch against the current subversion repository, that makes udhcpc have an adjustable timeout. Works for both foreground and before it drops to the background. This brings it more in-line with ISC dhcpc. Use like so: udhcpc --timeout=10 ... or udhcpc -T 10 ... Still shooting for 1.1.1 this month? Would really be great if you could get this in that release. Please give credit to Paul Pacheco - ppacheco@gmail.com.
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r--networking/udhcp/dhcpc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h
index 808e91924..80c3fc2f8 100644
--- a/networking/udhcp/dhcpc.h
+++ b/networking/udhcp/dhcpc.h
@@ -30,6 +30,7 @@ struct client_config_t {
uint8_t *fqdn; /* Optional fully qualified domain name to use */
int ifindex; /* Index number of the interface to use */
int retries; /* Max number of request packets */
+ int timeout; /* Number of seconds to try to get a lease */
uint8_t arp[6]; /* Our arp address */
};