summaryrefslogtreecommitdiffstats
path: root/net/ipv4/proc.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-07-18 13:06:26 +0200
committerDavid S. Miller <davem@davemloft.net>2008-07-18 13:06:26 +0200
commit8e3461d01bdbc3dbf993448ed9ad4acaaeb6495d (patch)
treeeac7757ba4bc96ce1ce1ba629b5ea6d4b81f6b20 /net/ipv4/proc.c
parentproc: create /proc/net/snmp file in each net (diff)
downloadlinux-8e3461d01bdbc3dbf993448ed9ad4acaaeb6495d.tar.xz
linux-8e3461d01bdbc3dbf993448ed9ad4acaaeb6495d.zip
proc: show per-net ip_devconf.forwarding in /proc/net/snmp
This one has become per-net long ago, but the appropriate file is per-net only now. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/proc.c')
-rw-r--r--net/ipv4/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index 367b81f6f57a..120e1f7461da 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -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++)