diff --git a/net/net.c b/net/net.c index 4bbe5313c3e2124938649919636b0025bf98b01c..7ce947db3003b4d9de05e7f749983655f371150c 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)