udhcpc: emit "correct" secs field
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 12 Mar 2011 04:37:54 +0000 (05:37 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 12 Mar 2011 04:37:54 +0000 (05:37 +0100)
commit9ac5596a5154d789964150737a784dc4db98265b
tree4a3e3906516ebf078729e056b3f2562cb3ba81ee
parentea684c6aaf23ead57fac74c3ceaa651c1ae625ec
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>
networking/udhcp/dhcpc.c
networking/udhcp/dhcpc.h