From 223adf761b6c3cc7e4535769a917e0c02b334302 Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Thu, 29 Jan 2015 00:37:34 +0100 Subject: dhcp: fix request packet's seconds elapsed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it's done in the discover packet so let's do it also in the request packet. Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer --- net/dhcp.c | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3