From: Wolfgang Denk Date: Sun, 12 Mar 2006 00:13:30 +0000 (+0100) Subject: Fix behaviour if gatewayip is not set X-Git-Tag: LABEL_2006_04_18_1106~7^2~45 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d509b81210e8126d8f953fda419f93c8065e314a;p=oweals%2Fu-boot.git Fix behaviour if gatewayip is not set Patch by Robin Gilks, 23 Dec 2004 --- diff --git a/CHANGELOG b/CHANGELOG index fa3f7450b0..db50b57e85 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes since U-Boot 1.1.4: ====================================================================== +* Fix behaviour if gatewayip is not set + Patch by Robin Gilks, 23 Dec 2004 + * Fix cleanup for netstart board. Remove build results from repository diff --git a/net/net.c b/net/net.c index 37c5fb698e..506203761f 100644 --- a/net/net.c +++ b/net/net.c @@ -222,8 +222,10 @@ void ArpRequest (void) (NetOurIP & NetOurSubnetMask)) { if (NetOurGatewayIP == 0) { puts ("## Warning: gatewayip needed but not set\n"); + NetArpWaitReplyIP = NetArpWaitPacketIP; + } else { + NetArpWaitReplyIP = NetOurGatewayIP; } - NetArpWaitReplyIP = NetOurGatewayIP; } else { NetArpWaitReplyIP = NetArpWaitPacketIP; }