Skip to content
Snippets Groups Projects
Commit 0328ef0e authored by Robin Getz's avatar Robin Getz Committed by Wolfgang Denk
Browse files

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: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
Acked-by: default avatarBen Warren <biggerbadderben@gmail.com>
Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 7288f972
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment