9
0
Fork 0

dhcp: fix request packet's seconds elapsed

it's done in the discover packet so let's do it also in the request packet.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Eric Bénard 2015-01-29 00:37:34 +01:00 committed by Sascha Hauer
parent ea0a3b7da8
commit 223adf761b
1 changed files with 1 additions and 2 deletions

View File

@ -557,8 +557,7 @@ static void dhcp_send_request_packet(struct bootp *bp_offer)
bp->bp_htype = HWT_ETHER;
bp->bp_hlen = HWL_ETHER;
bp->bp_hops = 0;
/* FIXME what is this? */
// bp->bp_secs = htons(get_timer(0) / CFG_HZ);
bp->bp_secs = htons(get_time_ns() >> 30);
/*
* RFC3046 requires Relay Agents to discard packets with