From 09133f8580f0106429ba3600f1855bd3577ae58b Mon Sep 17 00:00:00 2001 From: Michael Zaidman Date: Tue, 14 Jul 2009 23:37:12 +0300 Subject: 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: Robin Getz Signed-off-by: Michael Zaidman Signed-off-by: Ben Warren --- net/net.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') diff --git a/net/net.c b/net/net.c index 4bbe531..7ce947d 100644 --- a/net/net.c +++ b/net/net.c @@ -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) -- cgit v1.1