diff options
author | Denys Vlasenko | 2011-03-12 05:37:54 +0100 |
---|---|---|
committer | Denys Vlasenko | 2011-03-12 05:37:54 +0100 |
commit | 9ac5596a5154d789964150737a784dc4db98265b (patch) | |
tree | 4a3e3906516ebf078729e056b3f2562cb3ba81ee /networking/udhcp/dhcpc.h | |
parent | ea684c6aaf23ead57fac74c3ceaa651c1ae625ec (diff) | |
download | busybox-9ac5596a5154d789964150737a784dc4db98265b.zip busybox-9ac5596a5154d789964150737a784dc4db98265b.tar.gz |
udhcpc: emit "correct" secs field
In theory, sending secs set to constant zero should be ok too.
But some bleeping servers can actually be configured to answer ONLY
if secs is bigger than a preset value (!!)
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/bootpd.8.html
grep for "reply_threshold_seconds"
function old new delta
udhcpc_main 2573 2623 +50
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.h')
-rw-r--r-- | networking/udhcp/dhcpc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.h b/networking/udhcp/dhcpc.h index 9ef053a..2b35991 100644 --- a/networking/udhcp/dhcpc.h +++ b/networking/udhcp/dhcpc.h @@ -21,6 +21,9 @@ struct client_config_t { uint8_t *vendorclass; /* Optional vendor class-id to use */ uint8_t *hostname; /* Optional hostname to use */ uint8_t *fqdn; /* Optional fully qualified domain name to use */ + + uint16_t first_secs; + uint16_t last_secs; } FIX_ALIASING; /* server_config sits in 1st half of bb_common_bufsiz1 */ |