diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-03-12 01:13:30 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-03-12 01:13:30 +0100 |
commit | d509b81210e8126d8f953fda419f93c8065e314a (patch) | |
tree | a6dd84ad319d1995c1e9c037d8c6cfdb4a915453 /net | |
parent | 84ef51a632063e8cb57b2e9a4252497512831ffe (diff) | |
download | bootable_bootloader_goldelico_gta04-d509b81210e8126d8f953fda419f93c8065e314a.zip bootable_bootloader_goldelico_gta04-d509b81210e8126d8f953fda419f93c8065e314a.tar.gz bootable_bootloader_goldelico_gta04-d509b81210e8126d8f953fda419f93c8065e314a.tar.bz2 |
Fix behaviour if gatewayip is not set
Patch by Robin Gilks, 23 Dec 2004
Diffstat (limited to 'net')
-rw-r--r-- | net/net.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |