Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112037
b: refs/heads/master
c: e43291c
h: refs/heads/master
i:
  112035: a83bdc7
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Oct 7, 2008
1 parent 6616bd4 commit 7292745
Show file tree
Hide file tree
Showing 2 changed files with 17 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: ab38dc7a70e59a4888ab4acb51daf3c6012ce4b8
refs/heads/master: e43291cb37406dae405d50332eaa1ba2264c8dce
18 changes: 16 additions & 2 deletions trunk/net/ipv6/af_inet6.c
Original file line number Diff line number Diff line change
Expand Up @@ -835,13 +835,25 @@ static void cleanup_ipv6_mibs(void)
snmp_mib_free((void **)udplite_stats_in6);
}

static int __net_init ipv6_init_mibs(struct net *net)
{
return 0;
}

static void __net_exit ipv6_cleanup_mibs(struct net *net)
{
}

static int inet6_net_init(struct net *net)
{
int err = 0;

net->ipv6.sysctl.bindv6only = 0;
net->ipv6.sysctl.icmpv6_time = 1*HZ;

err = ipv6_init_mibs(net);
if (err)
return err;
#ifdef CONFIG_PROC_FS
err = udp6_proc_init(net);
if (err)
Expand All @@ -852,7 +864,6 @@ static int inet6_net_init(struct net *net)
err = ac6_proc_init(net);
if (err)
goto proc_ac6_fail;
out:
#endif
return err;

Expand All @@ -861,7 +872,9 @@ static int inet6_net_init(struct net *net)
tcp6_proc_exit(net);
proc_tcp6_fail:
udp6_proc_exit(net);
goto out;
out:
ipv6_cleanup_mibs(net);
return err;
#endif
}

Expand All @@ -872,6 +885,7 @@ static void inet6_net_exit(struct net *net)
tcp6_proc_exit(net);
ac6_proc_exit(net);
#endif
ipv6_cleanup_mibs(net);
}

static struct pernet_operations inet6_net_ops = {
Expand Down

0 comments on commit 7292745

Please sign in to comment.