diff options
author | Eric Andersen <andersen@codepoet.org> | 2006-03-20 17:37:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2006-03-20 17:37:00 +0000 |
commit | 28a6afe975c65ee25e5739b1d52eb24b2a8f27c9 (patch) | |
tree | c63bdffb45c6d2e1fd1d00b2083a97b38833a7c0 /networking/udhcp/dhcpc.h | |
parent | c30f445b08e811ec7e339e7efad8f7cd47c3ad59 (diff) | |
download | busybox-w32-28a6afe975c65ee25e5739b1d52eb24b2a8f27c9.tar.gz busybox-w32-28a6afe975c65ee25e5739b1d52eb24b2a8f27c9.tar.bz2 busybox-w32-28a6afe975c65ee25e5739b1d52eb24b2a8f27c9.zip |
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.h | 1 |
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 { | |||
30 | uint8_t *fqdn; /* Optional fully qualified domain name to use */ | 30 | uint8_t *fqdn; /* Optional fully qualified domain name to use */ |
31 | int ifindex; /* Index number of the interface to use */ | 31 | int ifindex; /* Index number of the interface to use */ |
32 | int retries; /* Max number of request packets */ | 32 | int retries; /* Max number of request packets */ |
33 | int timeout; /* Number of seconds to try to get a lease */ | ||
33 | uint8_t arp[6]; /* Our arp address */ | 34 | uint8_t arp[6]; /* Our arp address */ |
34 | }; | 35 | }; |
35 | 36 | ||