summaryrefslogtreecommitdiffstats
path: root/net/ipv6/proc.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-10-07 14:47:37 -0700
committerDavid S. Miller <davem@davemloft.net>2008-10-07 14:47:37 -0700
commit2b4209e4b7ba9c7d70910a665ae4b60d49b75fcd (patch)
treeceaa68694241649ad9e24a4ffedc5eb55d905397 /net/ipv6/proc.c
parent7b43ccecc77480353a5657d993d671cae9e94efd (diff)
downloadop-kernel-dev-2b4209e4b7ba9c7d70910a665ae4b60d49b75fcd.zip
op-kernel-dev-2b4209e4b7ba9c7d70910a665ae4b60d49b75fcd.tar.gz
netns: register global ipv6 mibs statistics in each namespace
Unused net variable will become used very soon. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r--net/ipv6/proc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index 7601f56..c38c9e5 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -175,6 +175,8 @@ snmp6_seq_show_item(struct seq_file *seq, void **mib, struct snmp_mib *itemlist)
static int snmp6_seq_show(struct seq_file *seq, void *v)
{
+ struct net *net = (struct net *)seq->private;
+
snmp6_seq_show_item(seq, (void **)ipv6_statistics, snmp6_ipstats_list);
snmp6_seq_show_item(seq, (void **)icmpv6_statistics, snmp6_icmp6_list);
snmp6_seq_show_icmpv6msg(seq, (void **)icmpv6msg_statistics);
@@ -185,7 +187,7 @@ static int snmp6_seq_show(struct seq_file *seq, void *v)
static int snmp6_seq_open(struct inode *inode, struct file *file)
{
- return single_open(file, snmp6_seq_show, NULL);
+ return single_open_net(inode, file, snmp6_seq_show);
}
static const struct file_operations snmp6_seq_fops = {
@@ -193,7 +195,7 @@ static const struct file_operations snmp6_seq_fops = {
.open = snmp6_seq_open,
.read = seq_read,
.llseek = seq_lseek,
- .release = single_release,
+ .release = single_release_net,
};
static int snmp6_dev_seq_show(struct seq_file *seq, void *v)
OpenPOWER on IntegriCloud