summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-08-21 16:23:02 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-08-21 16:23:02 +0200
commit3ef59a54678d6858041022050c536d9bae578287 (patch)
tree0802cf9d9082d283357e20ae4684d558adb46571 /net
parent98bd1709907cde31f991eb85f191b11eabed2fb4 (diff)
downloadbarebox-3ef59a54678d6858041022050c536d9bae578287.tar.gz
barebox-3ef59a54678d6858041022050c536d9bae578287.tar.xz
fix 62e2cd0a681c19fdc4180adf89e69709c696133b
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/net.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/net/net.c b/net/net.c
index 5002add67a..437a400a06 100644
--- a/net/net.c
+++ b/net/net.c
@@ -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;