summaryrefslogtreecommitdiff
path: root/net/ipv4/proc.c
diff options
context:
space:
mode:
authorNikolay Borisov <kernel@kyup.com>2016-02-15 13:11:27 +0300
committerDavid S. Miller <davem@davemloft.net>2016-02-17 04:42:54 +0300
commitfa50d974d104113630d68b7d03233a6686230d0c (patch)
tree17a12ad65afc3bf5302eba390262728d1b3b74dc /net/ipv4/proc.c
parent6cd21d79419c154a73be6fa31bc1a1f42ffd6815 (diff)
downloadlinux-fa50d974d104113630d68b7d03233a6686230d0c.tar.xz
ipv4: Namespaceify ip_default_ttl sysctl knob
Signed-off-by: Nikolay Borisov <kernel@kyup.com> 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 3abd9d7a3adf..9f665b63a927 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -390,7 +390,7 @@ static int snmp_seq_show(struct seq_file *seq, void *v)
seq_printf(seq, "\nIp: %d %d",
IPV4_DEVCONF_ALL(net, FORWARDING) ? 1 : 2,
- sysctl_ip_default_ttl);
+ net->ipv4.sysctl_ip_default_ttl);
BUILD_BUG_ON(offsetof(struct ipstats_mib, mibs) != 0);
for (i = 0; snmp4_ipstats_list[i].name != NULL; i++)