Skip to content

Commit

Permalink
proc: show per-net ip_devconf.forwarding in /proc/net/snmp
Browse files Browse the repository at this point in the history
This one has become per-net long ago, but the appropriate file
is per-net only now.

Signed-off-by: Pavel Emelyanov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
xemul authored and davem330 committed Jul 18, 2008
1 parent 229bf0c commit 8e3461d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static int snmp_seq_show(struct seq_file *seq, void *v)
seq_printf(seq, " %s", snmp4_ipstats_list[i].name);

seq_printf(seq, "\nIp: %d %d",
IPV4_DEVCONF_ALL(&init_net, FORWARDING) ? 1 : 2,
IPV4_DEVCONF_ALL(net, FORWARDING) ? 1 : 2,
sysctl_ip_default_ttl);

for (i = 0; snmp4_ipstats_list[i].name != NULL; i++)
Expand Down

0 comments on commit 8e3461d

Please sign in to comment.