9
0
Fork 0

svn_rev_144

fix seconds since boot
This commit is contained in:
Sascha Hauer 2007-07-05 18:01:27 +02:00 committed by Sascha Hauer
parent ca8d1c15a3
commit 64705cc469
1 changed files with 1 additions and 3 deletions

View File

@ -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);