Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78725
b: refs/heads/master
c: 89918fc
h: refs/heads/master
i:
  78723: c5da934
v: v3
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Jan 28, 2008
1 parent 194afae commit c278fd6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 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: b0f159db7c95babf1e321334eb33d42db94f2854
refs/heads/master: 89918fc270bb77cb1a0703f0ea566a692b32e324
23 changes: 19 additions & 4 deletions trunk/net/ipv6/sysctl_net_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,33 @@ EXPORT_SYMBOL_GPL(net_ipv6_ctl_path);

static struct ctl_table_header *ipv6_sysctl_header;

int ipv6_sysctl_register(void)
static int ipv6_sysctl_net_init(struct net *net)
{
ipv6_sysctl_header = register_sysctl_paths(net_ipv6_ctl_path,
ipv6_table);
ipv6_sysctl_header = register_net_sysctl_table(net, net_ipv6_ctl_path,
ipv6_table);
if (!ipv6_sysctl_header)
return -ENOMEM;

return 0;

}

static void ipv6_sysctl_net_exit(struct net *net)
{
unregister_net_sysctl_table(ipv6_sysctl_header);
}

static struct pernet_operations ipv6_sysctl_net_ops = {
.init = ipv6_sysctl_net_init,
.exit = ipv6_sysctl_net_exit,
};

int ipv6_sysctl_register(void)
{
return register_pernet_subsys(&ipv6_sysctl_net_ops);
}

void ipv6_sysctl_unregister(void)
{
unregister_sysctl_table(ipv6_sysctl_header);
unregister_pernet_subsys(&ipv6_sysctl_net_ops);
}

0 comments on commit c278fd6

Please sign in to comment.