Skip to content

Commit

Permalink
net: Check subnet against the actual ip address in use for nfs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jhershbe committed Jul 26, 2018
1 parent 2d114b8 commit 347e32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 347e32b

Please sign in to comment.