public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] DHCP regression on 2009-06
@ 2009-07-14 20:37 Michael Zaidman
  2009-07-14 20:40 ` [U-Boot] unassigned-patches/39: " u-boot at bugs.denx.de
  2009-07-21  6:50 ` [U-Boot] " Ben Warren
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Zaidman @ 2009-07-14 20:37 UTC (permalink / raw)
  To: u-boot

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)
-- 
1.6.0.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-21  6:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 20:37 [U-Boot] [PATCH] DHCP regression on 2009-06 Michael Zaidman
2009-07-14 20:40 ` [U-Boot] unassigned-patches/39: " u-boot at bugs.denx.de
2009-07-21  6:50 ` [U-Boot] " Ben Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox