Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90262
b: refs/heads/master
c: 84c375a
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Mar 24, 2008
1 parent 46606fc commit 364737e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 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: ff2bac6a63e3694e7a97152b7e934fe244e2a858
refs/heads/master: 84c375af0ff61e0bd15fac0aed0438640494483e
17 changes: 16 additions & 1 deletion trunk/net/ipv4/udplite.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,24 @@ static struct udp_seq_afinfo udplite4_seq_afinfo = {
.seq_fops = &udplite4_seq_fops,
};

static int udplite4_proc_init_net(struct net *net)
{
return udp_proc_register(net, &udplite4_seq_afinfo);
}

static void udplite4_proc_exit_net(struct net *net)
{
udp_proc_unregister(net, &udplite4_seq_afinfo);
}

static struct pernet_operations udplite4_net_ops = {
.init = udplite4_proc_init_net,
.exit = udplite4_proc_exit_net,
};

static __init int udplite4_proc_init(void)
{
return udp_proc_register(&init_net, &udplite4_seq_afinfo);
return register_pernet_subsys(&udplite4_net_ops);
}
#else
static inline int udplite4_proc_init(void)
Expand Down
19 changes: 17 additions & 2 deletions trunk/net/ipv6/udplite.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,28 @@ static struct udp_seq_afinfo udplite6_seq_afinfo = {
.seq_fops = &udplite6_seq_fops,
};

static int udplite6_proc_init_net(struct net *net)
{
return udp_proc_register(net, &udplite6_seq_afinfo);
}

static void udplite6_proc_exit_net(struct net *net)
{
udp_proc_unregister(net, &udplite6_seq_afinfo);
}

static struct pernet_operations udplite6_net_ops = {
.init = udplite6_proc_init_net,
.exit = udplite6_proc_exit_net,
};

int __init udplite6_proc_init(void)
{
return udp_proc_register(&init_net, &udplite6_seq_afinfo);
return register_pernet_subsys(&udplite6_net_ops);
}

void udplite6_proc_exit(void)
{
udp_proc_unregister(&init_net, &udplite6_seq_afinfo);
unregister_pernet_subsys(&udplite6_net_ops);
}
#endif

0 comments on commit 364737e

Please sign in to comment.