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:
parent
ea0a3b7da8
commit
223adf761b
|
@ -557,8 +557,7 @@ static void dhcp_send_request_packet(struct bootp *bp_offer)
|
||||||
bp->bp_htype = HWT_ETHER;
|
bp->bp_htype = HWT_ETHER;
|
||||||
bp->bp_hlen = HWL_ETHER;
|
bp->bp_hlen = HWL_ETHER;
|
||||||
bp->bp_hops = 0;
|
bp->bp_hops = 0;
|
||||||
/* FIXME what is this? */
|
bp->bp_secs = htons(get_time_ns() >> 30);
|
||||||
// bp->bp_secs = htons(get_timer(0) / CFG_HZ);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RFC3046 requires Relay Agents to discard packets with
|
* RFC3046 requires Relay Agents to discard packets with
|
||||||
|
|
Loading…
Reference in New Issue