Skip to content
Snippets Groups Projects
Commit 09133f85 authored by Michael Zaidman's avatar Michael Zaidman Committed by Ben Warren
Browse files

DHCP regression on 2009-06


Fixed the DHCP/BOOTP/RARP regression introduced in u-boot-2009.06
by initializing our IP addr to 0 in order to accept any IP addr
assigned to us by the DHCP/BOOTP/RARP server.

Ack-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: default avatarMichael Zaidman <michael.zaidman@gmail.com>
Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent 443ce4ac
No related branches found
No related tags found
No related merge requests found
......@@ -394,17 +394,20 @@ restart:
#if defined(CONFIG_CMD_DHCP)
case DHCP:
BootpTry = 0;
NetOurIP = 0;
DhcpRequest(); /* Basically same as BOOTP */
break;
#endif
case BOOTP:
BootpTry = 0;
NetOurIP = 0;
BootpRequest ();
break;
case RARP:
RarpTry = 0;
NetOurIP = 0;
RarpRequest ();
break;
#if defined(CONFIG_CMD_PING)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment