mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 09:00:45 +09:00
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>
This commit is contained in:
parent
7288f972fc
commit
0328ef0edf
@ -924,8 +924,6 @@ DhcpHandler(uchar * pkt, unsigned dest, unsigned src, unsigned len)
|
|||||||
if (NetReadLong((ulong*)&bp->bp_vend[0]) == htonl(BOOTP_VENDOR_MAGIC))
|
if (NetReadLong((ulong*)&bp->bp_vend[0]) == htonl(BOOTP_VENDOR_MAGIC))
|
||||||
DhcpOptionsProcess((u8 *)&bp->bp_vend[4], bp);
|
DhcpOptionsProcess((u8 *)&bp->bp_vend[4], bp);
|
||||||
|
|
||||||
BootpCopyNetParams(bp); /* Store net params from reply */
|
|
||||||
|
|
||||||
NetSetTimeout(TIMEOUT * CFG_HZ, BootpTimeout);
|
NetSetTimeout(TIMEOUT * CFG_HZ, BootpTimeout);
|
||||||
DhcpSendRequestPkt(bp);
|
DhcpSendRequestPkt(bp);
|
||||||
#ifdef CFG_BOOTFILE_PREFIX
|
#ifdef CFG_BOOTFILE_PREFIX
|
||||||
|
Loading…
Reference in New Issue
Block a user