Title: [1980] trunk/u-boot-2009.06/net/net.c: DHCP regression on 2009-06
- Revision
- 1980
- Author
- vapier
- Date
- 2009-07-24 13:24:24 -0500 (Fri, 24 Jul 2009)
Log Message
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.
Modified Paths
Diff
Modified: trunk/u-boot-2009.06/net/net.c (1979 => 1980)
--- trunk/u-boot-2009.06/net/net.c 2009-07-23 20:32:44 UTC (rev 1979)
+++ trunk/u-boot-2009.06/net/net.c 2009-07-24 18:24:24 UTC (rev 1980)
@@ -388,17 +388,20 @@
#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)
_______________________________________________
U-Boot-commits mailing list
U-Boot-commits@blackfin.uclinux.org
https://blackfin.uclinux.org/mailman/listinfo/u-boot-commits