[U-Boot] [PATCH] 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: Robin Getz rgetz@blackfin.uclinux.org Signed-off-by: Michael Zaidman michael.zaidman@gmail.com --- net/net.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/net.c b/net/net.c index 5637cf5..9bd3208 100644 --- a/net/net.c +++ b/net/net.c @@ -388,17 +388,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)

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: Robin Getz rgetz@blackfin.uclinux.org Signed-off-by: Michael Zaidman michael.zaidman@gmail.com
--- Added to GNATS database as unassigned-patches/39
Responsible: patch-coord Message-Id: 1247603832-10715-1-git-send-email-michael.zaidman@gmail.com In-Reply-To: References: Patch-Date: Tue Jul 14 22:37:12 +0200 2009
--- net/net.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/net.c b/net/net.c index 5637cf5..9bd3208 100644 --- a/net/net.c +++ b/net/net.c @@ -388,17 +388,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)

Michael,
Michael Zaidman wrote:
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: Robin Getz rgetz@blackfin.uclinux.org Signed-off-by: Michael Zaidman michael.zaidman@gmail.com
net/net.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/net.c b/net/net.c index 5637cf5..9bd3208 100644 --- a/net/net.c +++ b/net/net.c @@ -388,17 +388,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)
Applied to net repo.
thanks, Ben
participants (3)
-
Ben Warren
-
Michael Zaidman
-
u-boot@bugs.denx.de