9
0
Fork 0
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2008-08-21 16:23:02 +02:00
parent 98bd170990
commit 3ef59a5467
1 changed files with 2 additions and 7 deletions

View File

@ -302,13 +302,6 @@ restart:
NetOurNativeVLAN = getenv_VLAN("nvlan");
NetServerIP = dev_get_param_ip(eth_current->dev, "serverip");
if (protocol == RARP)
/*
* initialize our IP addr to 0 in order to accept ANY
* IP addr assigned to us by the BOOTP / RARP server
*/
NetOurIP = 0;
/*
* Start the ball rolling with the given start function. From
* here on, this code is a state machine driven by received
@ -332,6 +325,7 @@ restart:
case DHCP:
/* Start with a clean slate... */
BootpTry = 0;
NetOurIP = 0;
DhcpRequest(); /* Basically same as BOOTP */
break;
#endif
@ -343,6 +337,7 @@ restart:
#endif
#ifdef CONFIG_NET_RARP
case RARP:
NetOurIP = 0;
RarpTry = 0;
RarpRequest ();
break;