Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90259
b: refs/heads/master
c: 15439fe
h: refs/heads/master
i:
  90257: f465886
  90255: 2d3c62d
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Mar 24, 2008
1 parent 826b6df commit 5585741
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06802a819a0a2d31c952c0624cea6cd00e4e50da
refs/heads/master: 15439febb0bd530f85e40ad6fa8e9f75106639ef
19 changes: 17 additions & 2 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1701,14 +1701,29 @@ static struct udp_seq_afinfo udp4_seq_afinfo = {
.seq_fops = &udp4_seq_fops,
};

static int udp4_proc_init_net(struct net *net)
{
return udp_proc_register(net, &udp4_seq_afinfo);
}

static void udp4_proc_exit_net(struct net *net)
{
udp_proc_unregister(net, &udp4_seq_afinfo);
}

static struct pernet_operations udp4_net_ops = {
.init = udp4_proc_init_net,
.exit = udp4_proc_exit_net,
};

int __init udp4_proc_init(void)
{
return udp_proc_register(&init_net, &udp4_seq_afinfo);
return register_pernet_subsys(&udp4_net_ops);
}

void udp4_proc_exit(void)
{
udp_proc_unregister(&init_net, &udp4_seq_afinfo);
unregister_pernet_subsys(&udp4_net_ops);
}
#endif /* CONFIG_PROC_FS */

Expand Down

0 comments on commit 5585741

Please sign in to comment.