summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2018-07-03 19:22:55 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2018-07-26 14:08:19 -0500
commit347e32b01db7bf4d24d21cf775021f9b70d6448a (patch)
treeda9777318feaa91dfff82168ca626908e1322e57 /net
parent2d114b83a7e44d448b6ffe1bf5e2ced11b769ab2 (diff)
downloadu-boot-347e32b01db7bf4d24d21cf775021f9b70d6448a.tar.gz
u-boot-347e32b01db7bf4d24d21cf775021f9b70d6448a.tar.bz2
u-boot-347e32b01db7bf4d24d21cf775021f9b70d6448a.zip
net: Check subnet against the actual ip address in use for nfs
The check for sending to the gateway was not using the correct variable for comparison, so it was reporting that packets are sent to the gateway when they were not. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfs.c b/net/nfs.c
index 9a16765ba1..7e8af28e9f 100644
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -896,7 +896,7 @@ void nfs_start(void)
struct in_addr server_net;
our_net.s_addr = net_ip.s_addr & net_netmask.s_addr;
- server_net.s_addr = net_server_ip.s_addr & net_netmask.s_addr;
+ server_net.s_addr = nfs_server_ip.s_addr & net_netmask.s_addr;
if (our_net.s_addr != server_net.s_addr)
debug("; sending through gateway %pI4",
&net_gateway);