diff options
author | Eric Bénard <eric@eukrea.com> | 2015-01-29 00:37:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-29 08:39:04 +0100 |
commit | 223adf761b6c3cc7e4535769a917e0c02b334302 (patch) | |
tree | cda35427aadf317b4073c6855674326bdbb6ba1f | |
parent | ea0a3b7da852b3e889d13d0cf95cdd4715c30c38 (diff) | |
download | barebox-223adf761b6c3cc7e4535769a917e0c02b334302.tar.gz barebox-223adf761b6c3cc7e4535769a917e0c02b334302.tar.xz |
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>
-rw-r--r-- | net/dhcp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/dhcp.c b/net/dhcp.c index cad5dd2b59..19a846270e 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -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 |