summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:27 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:27 +0200
commit64705cc4697bd65f39099d465eafee6dc512059c (patch)
tree8419b8b9341c154ec8e6bfc2cb4dbb688646838c /net
parentca8d1c15a334df75864ceb8110a55897ae610d56 (diff)
downloadbarebox-64705cc4697bd65f39099d465eafee6dc512059c.tar.gz
barebox-64705cc4697bd65f39099d465eafee6dc512059c.tar.xz
svn_rev_144
fix seconds since boot
Diffstat (limited to 'net')
-rw-r--r--net/bootp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bootp.c b/net/bootp.c
index 18065b8bd2..5ef4cef818 100644
--- a/net/bootp.c
+++ b/net/bootp.c
@@ -557,9 +557,7 @@ BootpRequest (void)
bp->bp_htype = HWT_ETHER;
bp->bp_hlen = HWL_ETHER;
bp->bp_hops = 0;
- /* FIXME what is this? */
-#warning this is broken
-// bp->bp_secs = htons(get_timer(0) / CFG_HZ);
+ bp->bp_secs = htons(get_time_ns() >> 30);
NetWriteIP(&bp->bp_ciaddr, 0);
NetWriteIP(&bp->bp_yiaddr, 0);
NetWriteIP(&bp->bp_siaddr, 0);