diff options
author | Robin Getz <rgetz@blackfin.uclinux.org> | 2008-07-15 19:44:46 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-15 19:44:46 (GMT) |
commit | 0328ef0edfe950f0b7b8b368dae482531506b74a (patch) | |
tree | 435dc02bb53f784c7e2187ab9b9e69227622e33c | |
parent | 7288f972fcaee14a9741cb08c8688a23874b4a2e (diff) | |
download | u-boot-0328ef0edfe950f0b7b8b368dae482531506b74a.tar.xz |
Fix DHCP protocol so U-Boot does not respond too early
on the network with it's offered IP number; it should not reply until
after it has received a DHCP ACK message. Also ensures that U-Boot
does it's DHCPREQUEST as broadcast (per RFC 2131).
Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Acked-by: Ben Warren <biggerbadderben@gmail.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
-rw-r--r-- | net/bootp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bootp.c b/net/bootp.c index f48744a..5121caa 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -924,8 +924,6 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len) if (NetReadLong((ulong*)&bp->bp_vend[0]) == htonl(BOOTP_VENDOR_MAGIC)) DhcpOptionsProcess((u8 *)&bp->bp_vend[4], bp); - BootpCopyNetParams(bp); /* Store net params from reply */ - NetSetTimeout(TIMEOUT * CFG_HZ, BootpTimeout); DhcpSendRequestPkt(bp); #ifdef CFG_BOOTFILE_PREFIX |