提交 09133f85 编写于 作者: M Michael Zaidman 提交者: Ben Warren

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: NRobin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: NMichael Zaidman <michael.zaidman@gmail.com>
Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
上级 443ce4ac
...@@ -394,17 +394,20 @@ restart: ...@@ -394,17 +394,20 @@ restart:
#if defined(CONFIG_CMD_DHCP) #if defined(CONFIG_CMD_DHCP)
case DHCP: case DHCP:
BootpTry = 0; BootpTry = 0;
NetOurIP = 0;
DhcpRequest(); /* Basically same as BOOTP */ DhcpRequest(); /* Basically same as BOOTP */
break; break;
#endif #endif
case BOOTP: case BOOTP:
BootpTry = 0; BootpTry = 0;
NetOurIP = 0;
BootpRequest (); BootpRequest ();
break; break;
case RARP: case RARP:
RarpTry = 0; RarpTry = 0;
NetOurIP = 0;
RarpRequest (); RarpRequest ();
break; break;
#if defined(CONFIG_CMD_PING) #if defined(CONFIG_CMD_PING)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册