summaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r--net/ipv6/raw.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 5eb9b08947ed..afc307c89d1a 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -1304,21 +1304,10 @@ static const struct seq_operations raw6_seq_ops = {
1304 .show = raw6_seq_show, 1304 .show = raw6_seq_show,
1305}; 1305};
1306 1306
1307static int raw6_seq_open(struct inode *inode, struct file *file)
1308{
1309 return raw_seq_open(inode, file, &raw_v6_hashinfo, &raw6_seq_ops);
1310}
1311
1312static const struct file_operations raw6_seq_fops = {
1313 .open = raw6_seq_open,
1314 .read = seq_read,
1315 .llseek = seq_lseek,
1316 .release = seq_release_net,
1317};
1318
1319static int __net_init raw6_init_net(struct net *net) 1307static int __net_init raw6_init_net(struct net *net)
1320{ 1308{
1321 if (!proc_create("raw6", 0444, net->proc_net, &raw6_seq_fops)) 1309 if (!proc_create_net_data("raw6", 0444, net->proc_net, &raw6_seq_ops,
1310 sizeof(struct raw_iter_state), &raw_v6_hashinfo))
1322 return -ENOMEM; 1311 return -ENOMEM;
1323 1312
1324 return 0; 1313 return 0;