diff options
author | Denis V. Lunev <den@openvz.org> | 2008-10-07 17:47:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-07 17:47:37 -0400 |
commit | 2b4209e4b7ba9c7d70910a665ae4b60d49b75fcd (patch) | |
tree | ceaa68694241649ad9e24a4ffedc5eb55d905397 | |
parent | 7b43ccecc77480353a5657d993d671cae9e94efd (diff) |
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>
-rw-r--r-- | net/ipv6/proc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 7601f56ce915..c38c9e55406b 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) | |||
175 | 175 | ||
176 | static int snmp6_seq_show(struct seq_file *seq, void *v) | 176 | static int snmp6_seq_show(struct seq_file *seq, void *v) |
177 | { | 177 | { |
178 | struct net *net = (struct net *)seq->private; | ||
179 | |||
178 | snmp6_seq_show_item(seq, (void **)ipv6_statistics, snmp6_ipstats_list); | 180 | snmp6_seq_show_item(seq, (void **)ipv6_statistics, snmp6_ipstats_list); |
179 | snmp6_seq_show_item(seq, (void **)icmpv6_statistics, snmp6_icmp6_list); | 181 | snmp6_seq_show_item(seq, (void **)icmpv6_statistics, snmp6_icmp6_list); |
180 | snmp6_seq_show_icmpv6msg(seq, (void **)icmpv6msg_statistics); | 182 | snmp6_seq_show_icmpv6msg(seq, (void **)icmpv6msg_statistics); |
@@ -185,7 +187,7 @@ static int snmp6_seq_show(struct seq_file *seq, void *v) | |||
185 | 187 | ||
186 | static int snmp6_seq_open(struct inode *inode, struct file *file) | 188 | static int snmp6_seq_open(struct inode *inode, struct file *file) |
187 | { | 189 | { |
188 | return single_open(file, snmp6_seq_show, NULL); | 190 | return single_open_net(inode, file, snmp6_seq_show); |
189 | } | 191 | } |
190 | 192 | ||
191 | static const struct file_operations snmp6_seq_fops = { | 193 | static const struct file_operations snmp6_seq_fops = { |
@@ -193,7 +195,7 @@ static const struct file_operations snmp6_seq_fops = { | |||
193 | .open = snmp6_seq_open, | 195 | .open = snmp6_seq_open, |
194 | .read = seq_read, | 196 | .read = seq_read, |
195 | .llseek = seq_lseek, | 197 | .llseek = seq_lseek, |
196 | .release = single_release, | 198 | .release = single_release_net, |
197 | }; | 199 | }; |
198 | 200 | ||
199 | static int snmp6_dev_seq_show(struct seq_file *seq, void *v) | 201 | static int snmp6_dev_seq_show(struct seq_file *seq, void *v) |