summaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 78cef00c9596..1b5ea3379d9b 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4254,22 +4254,10 @@ static const struct seq_operations if6_seq_ops = {
4254 .stop = if6_seq_stop, 4254 .stop = if6_seq_stop,
4255}; 4255};
4256 4256
4257static int if6_seq_open(struct inode *inode, struct file *file)
4258{
4259 return seq_open_net(inode, file, &if6_seq_ops,
4260 sizeof(struct if6_iter_state));
4261}
4262
4263static const struct file_operations if6_fops = {
4264 .open = if6_seq_open,
4265 .read = seq_read,
4266 .llseek = seq_lseek,
4267 .release = seq_release_net,
4268};
4269
4270static int __net_init if6_proc_net_init(struct net *net) 4257static int __net_init if6_proc_net_init(struct net *net)
4271{ 4258{
4272 if (!proc_create("if_inet6", 0444, net->proc_net, &if6_fops)) 4259 if (!proc_create_net("if_inet6", 0444, net->proc_net, &if6_seq_ops,
4260 sizeof(struct if6_iter_state)))
4273 return -ENOMEM; 4261 return -ENOMEM;
4274 return 0; 4262 return 0;
4275} 4263}