From: Pavel Emelyanov Date: Fri, 18 Jul 2008 11:06:26 +0000 (-0700) Subject: proc: show per-net ip_devconf.forwarding in /proc/net/snmp X-Git-Tag: v2.6.27-rc1~969^2~37 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8e3461d01bdbc3dbf993448ed9ad4acaaeb6495d;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 367b81f6f57..120e1f7461d 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++)