aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/proc.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2007-12-16 16:32:48 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:12 -0500
commit586f12115264b767ea6a48ce081ca25a39c1e3dd (patch)
tree48bb41f07d4dc2a1e0d9f9d71286594d3b9800fa /net/ipv4/proc.c
parent9355bbd685bf705a7f7bd6470b92ca0562c7a661 (diff)
[IPV4]: Switch users of ipv4_devconf(_all) to use the pernet one
These are scattered over the code, but almost all the "critical" places already have the proper struct net at hand except for snmp proc showing function and routing rtnl handler. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index ce34b281803f..41734db677be 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -309,7 +309,8 @@ static int snmp_seq_show(struct seq_file *seq, void *v)
309 seq_printf(seq, " %s", snmp4_ipstats_list[i].name); 309 seq_printf(seq, " %s", snmp4_ipstats_list[i].name);
310 310
311 seq_printf(seq, "\nIp: %d %d", 311 seq_printf(seq, "\nIp: %d %d",
312 IPV4_DEVCONF_ALL(FORWARDING) ? 1 : 2, sysctl_ip_default_ttl); 312 IPV4_DEVCONF_ALL(&init_net, FORWARDING) ? 1 : 2,
313 sysctl_ip_default_ttl);
313 314
314 for (i = 0; snmp4_ipstats_list[i].name != NULL; i++) 315 for (i = 0; snmp4_ipstats_list[i].name != NULL; i++)
315 seq_printf(seq, " %lu", 316 seq_printf(seq, " %lu",