proc: show per-net ip_devconf.forwarding in /proc/net/snmp
authorPavel Emelyanov <xemul@openvz.org>
Fri, 18 Jul 2008 11:06:26 +0000 (04:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 11:06:26 +0000 (04:06 -0700)
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>
net/ipv4/proc.c

index 367b81f6f57aa9f49565e37935e00c25b7e5d658..120e1f7461da16a5a75aeeab02108df5d884f337 100644 (file)
@@ -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++)