Lines Matching refs:ipv6
346 idev->stats.ipv6 = alloc_percpu(struct ipstats_mib); in snmp6_alloc_dev()
347 if (!idev->stats.ipv6) in snmp6_alloc_dev()
352 addrconf_stats = per_cpu_ptr(idev->stats.ipv6, i); in snmp6_alloc_dev()
371 free_percpu(idev->stats.ipv6); in snmp6_alloc_dev()
394 memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); in ipv6_add_dev()
673 devconf = net->ipv6.devconf_all; in inet6_netconf_get_devconf()
676 devconf = net->ipv6.devconf_dflt; in inet6_netconf_get_devconf()
716 u32 res = atomic_read(&net->ipv6.dev_addr_genid) + in inet6_base_seq()
787 net->ipv6.devconf_all, in inet6_netconf_dump_devconf()
798 net->ipv6.devconf_dflt, in inet6_netconf_dump_devconf()
890 if (p == &net->ipv6.devconf_dflt->forwarding) { in addrconf_fixup_forwarding()
895 net->ipv6.devconf_dflt); in addrconf_fixup_forwarding()
900 if (p == &net->ipv6.devconf_all->forwarding) { in addrconf_fixup_forwarding()
901 int old_dflt = net->ipv6.devconf_dflt->forwarding; in addrconf_fixup_forwarding()
903 net->ipv6.devconf_dflt->forwarding = newf; in addrconf_fixup_forwarding()
908 net->ipv6.devconf_dflt); in addrconf_fixup_forwarding()
915 net->ipv6.devconf_all); in addrconf_fixup_forwarding()
958 if (p == &net->ipv6.devconf_dflt->ignore_routes_with_linkdown) { in addrconf_fixup_linkdown()
964 net->ipv6.devconf_dflt); in addrconf_fixup_linkdown()
969 if (p == &net->ipv6.devconf_all->ignore_routes_with_linkdown) { in addrconf_fixup_linkdown()
970 net->ipv6.devconf_dflt->ignore_routes_with_linkdown = newf; in addrconf_fixup_linkdown()
977 net->ipv6.devconf_all); in addrconf_fixup_linkdown()
1513 if (!net->ipv6.devconf_all->optimistic_dad && !idev->cnf.optimistic_dad) in ipv6_use_optimistic_addr()
1515 if (!net->ipv6.devconf_all->use_optimistic && !idev->cnf.use_optimistic) in ipv6_use_optimistic_addr()
1530 if (!net->ipv6.devconf_all->optimistic_dad && !idev->cnf.optimistic_dad) in ipv6_allow_optimistic_dad()
2147 if (retries > net->ipv6.sysctl.idgen_retries) { in addrconf_dad_failure()
2177 addrconf_mod_dad_work(ifp2, net->ipv6.sysctl.idgen_delay); in addrconf_dad_failure()
2655 if ((net->ipv6.devconf_all->optimistic_dad || in addrconf_prefix_rcv_add_addr()
2657 !net->ipv6.devconf_all->forwarding && sllao) in addrconf_prefix_rcv_add_addr()
2992 int ret = ipv6_mc_config(net->ipv6.mc_autojoin_sk, in inet6_addr_add()
3045 ipv6_mc_config(net->ipv6.mc_autojoin_sk, false, in inet6_addr_add()
3084 ipv6_mc_config(net->ipv6.mc_autojoin_sk, in inet6_addr_del()
3256 if ((dev_net(idev->dev)->ipv6.devconf_all->optimistic_dad || in addrconf_add_linklocal()
3258 !dev_net(idev->dev)->ipv6.devconf_all->forwarding) in addrconf_add_linklocal()
3314 else if (net->ipv6.devconf_dflt->stable_secret.initialized) in ipv6_generate_stable_address()
3315 secret = net->ipv6.devconf_dflt->stable_secret.secret; in ipv6_generate_stable_address()
3341 if (dad_count > dev_net(idev->dev)->ipv6.sysctl.idgen_retries) in ipv6_generate_stable_address()
3824 int _keep_addr = net->ipv6.devconf_all->keep_addr_on_down; in addrconf_ifdown()
4022 dev_net(idev->dev)->ipv6.devconf_all->enhanced_dad) { in addrconf_dad_kick()
4050 (net->ipv6.devconf_all->accept_dad < 1 && in addrconf_dad_begin()
4143 if ((dev_net(idev->dev)->ipv6.devconf_all->accept_dad > 1 || in addrconf_dad_work()
4283 dev_net(dev)->ipv6.devconf_all->ndisc_notify)) { in addrconf_dad_completed()
5703 __snmp6_fill_stats64(stats, idev->stats.ipv6, bytes, in snmp6_fill_stats()
5896 !net->ipv6.devconf_dflt->stable_secret.initialized) in check_stable_privacy()
6228 atomic_inc(&net->ipv6.dev_addr_genid); in __ipv6_ifa_notify()
6320 if (p == &net->ipv6.devconf_dflt->disable_ipv6) { in addrconf_disable_ipv6()
6325 if (p == &net->ipv6.devconf_all->disable_ipv6) { in addrconf_disable_ipv6()
6326 net->ipv6.devconf_dflt->disable_ipv6 = newf; in addrconf_disable_ipv6()
6377 if (valp == &net->ipv6.devconf_dflt->proxy_ndp) in addrconf_sysctl_proxy_ndp()
6381 net->ipv6.devconf_dflt); in addrconf_sysctl_proxy_ndp()
6382 else if (valp == &net->ipv6.devconf_all->proxy_ndp) in addrconf_sysctl_proxy_ndp()
6386 net->ipv6.devconf_all); in addrconf_sysctl_proxy_ndp()
6440 } else if (&net->ipv6.devconf_all->addr_gen_mode == ctl->data) { in addrconf_sysctl_addr_gen_mode()
6443 net->ipv6.devconf_dflt->addr_gen_mode = new_val; in addrconf_sysctl_addr_gen_mode()
6474 if (&net->ipv6.devconf_all->stable_secret == ctl->data) in addrconf_sysctl_stable_secret()
6506 if (&net->ipv6.devconf_dflt->stable_secret == ctl->data) { in addrconf_sysctl_stable_secret()
6609 if (valp == &net->ipv6.devconf_dflt->disable_policy) { in addrconf_disable_policy()
6614 if (valp == &net->ipv6.devconf_all->disable_policy) { in addrconf_disable_policy()
7198 memcpy(all, init_net.ipv6.devconf_all, in addrconf_init_net()
7200 memcpy(dflt, init_net.ipv6.devconf_dflt, in addrconf_init_net()
7204 memcpy(all, current->nsproxy->net_ns->ipv6.devconf_all, in addrconf_init_net()
7207 current->nsproxy->net_ns->ipv6.devconf_dflt, in addrconf_init_net()
7224 net->ipv6.devconf_all = all; in addrconf_init_net()
7225 net->ipv6.devconf_dflt = dflt; in addrconf_init_net()
7253 __addrconf_sysctl_unregister(net, net->ipv6.devconf_dflt, in addrconf_exit_net()
7255 __addrconf_sysctl_unregister(net, net->ipv6.devconf_all, in addrconf_exit_net()
7258 kfree(net->ipv6.devconf_dflt); in addrconf_exit_net()
7259 kfree(net->ipv6.devconf_all); in addrconf_exit_net()