Lines Matching defs:net

3  * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
15 #include <net/ndisc.h>
16 #include <net/ipv6.h>
17 #include <net/addrconf.h>
18 #include <net/inet_frag.h>
19 #include <net/netevent.h>
21 #include <net/calipso.h>
32 struct net *net;
35 net = container_of(table->data, struct net,
39 call_netevent_notifiers(NETEVENT_IPV6_MPATH_HASH_UPDATE, net);
201 static int __net_init ipv6_sysctl_net_init(struct net *net)
213 /* Update the variables to point into the current struct net */
215 ipv6_table[i].data += (void *)net - (void *)&init_net;
217 ipv6_route_table = ipv6_route_sysctl_init(net);
221 ipv6_icmp_table = ipv6_icmp_sysctl_init(net);
225 net->ipv6.sysctl.hdr = register_net_sysctl(net, "net/ipv6", ipv6_table);
226 if (!net->ipv6.sysctl.hdr)
229 net->ipv6.sysctl.route_hdr =
230 register_net_sysctl(net, "net/ipv6/route", ipv6_route_table);
231 if (!net->ipv6.sysctl.route_hdr)
234 net->ipv6.sysctl.icmp_hdr =
235 register_net_sysctl(net, "net/ipv6/icmp", ipv6_icmp_table);
236 if (!net->ipv6.sysctl.icmp_hdr)
243 unregister_net_sysctl_table(net->ipv6.sysctl.route_hdr);
245 unregister_net_sysctl_table(net->ipv6.sysctl.hdr);
255 static void __net_exit ipv6_sysctl_net_exit(struct net *net)
261 ipv6_table = net->ipv6.sysctl.hdr->ctl_table_arg;
262 ipv6_route_table = net->ipv6.sysctl.route_hdr->ctl_table_arg;
263 ipv6_icmp_table = net->ipv6.sysctl.icmp_hdr->ctl_table_arg;
265 unregister_net_sysctl_table(net->ipv6.sysctl.icmp_hdr);
266 unregister_net_sysctl_table(net->ipv6.sysctl.route_hdr);
267 unregister_net_sysctl_table(net->ipv6.sysctl.hdr);
285 ip6_header = register_net_sysctl(&init_net, "net/ipv6", ipv6_rotable);