• Home
  • Raw
  • Download

Lines Matching refs:cnf

382 	memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf));  in ipv6_add_dev()
384 if (ndev->cnf.stable_secret.initialized) in ipv6_add_dev()
385 ndev->cnf.addr_gen_mode = IN6_ADDR_GEN_MODE_STABLE_PRIVACY; in ipv6_add_dev()
387 ndev->cnf.mtu6 = dev->mtu; in ipv6_add_dev()
393 if (ndev->cnf.forwarding) in ipv6_add_dev()
417 ndev->cnf.accept_dad = -1; in ipv6_add_dev()
422 ndev->cnf.rtr_solicits = 0; in ipv6_add_dev()
433 ndev->cnf.use_tempaddr = -1; in ipv6_add_dev()
459 if (ndev->cnf.forwarding && (dev->flags & IFF_MULTICAST)) in ipv6_add_dev()
672 devconf = &in6_dev->cnf; in inet6_netconf_get_devconf()
743 &idev->cnf, in inet6_netconf_dump_devconf()
796 if (idev->cnf.forwarding) in dev_forward_change()
799 if (idev->cnf.forwarding) { in dev_forward_change()
813 if (idev->cnf.forwarding) in dev_forward_change()
820 dev->ifindex, &idev->cnf); in dev_forward_change()
832 int changed = (!idev->cnf.forwarding) ^ (!newf); in addrconf_forward_change()
833 idev->cnf.forwarding = newf; in addrconf_forward_change()
895 int changed = (!idev->cnf.ignore_routes_with_linkdown) ^ (!newf); in addrconf_linkdown_change()
897 idev->cnf.ignore_routes_with_linkdown = newf; in addrconf_linkdown_change()
903 &idev->cnf); in addrconf_linkdown_change()
1060 if (idev->cnf.disable_ipv6) { in ipv6_add_addr()
1095 idev->cnf.disable_policy) in ipv6_add_addr()
1324 if (idev->cnf.use_tempaddr <= 0) { in ipv6_create_tempaddr()
1332 if (ifp->regen_count++ >= idev->cnf.regen_max_retry) { in ipv6_create_tempaddr()
1333 idev->cnf.use_tempaddr = -1; /*XXX*/ in ipv6_create_tempaddr()
1348 regen_advance = idev->cnf.regen_max_retry * in ipv6_create_tempaddr()
1349 idev->cnf.dad_transmits * in ipv6_create_tempaddr()
1355 cnf_temp_preferred_lft = READ_ONCE(idev->cnf.temp_prefered_lft); in ipv6_create_tempaddr()
1357 idev->cnf.max_desync_factor, in ipv6_create_tempaddr()
1372 idev->cnf.temp_valid_lft + age); in ipv6_create_tempaddr()
1479 if (!net->ipv6.devconf_all->optimistic_dad && !idev->cnf.optimistic_dad) in ipv6_use_optimistic_addr()
1481 if (!net->ipv6.devconf_all->use_optimistic && !idev->cnf.use_optimistic) in ipv6_use_optimistic_addr()
1496 if (!net->ipv6.devconf_all->optimistic_dad && !idev->cnf.optimistic_dad) in ipv6_allow_optimistic_dad()
1602 score->ifa->idev->cnf.use_tempaddr >= 2; in ipv6_get_saddr_eval()
1778 (idev && idev->cnf.use_oif_addrs_only)) { in ipv6_dev_get_saddr()
2125 if (idev->cnf.max_addresses && in addrconf_dad_failure()
2127 idev->cnf.max_addresses) in addrconf_dad_failure()
2489 if (idev->cnf.disable_ipv6) in addrconf_add_dev()
2524 max_valid = idev->cnf.temp_valid_lft - age; in manage_tempaddrs()
2528 max_prefered = idev->cnf.temp_prefered_lft - in manage_tempaddrs()
2553 idev->cnf.use_tempaddr > 0) { in manage_tempaddrs()
2568 return idev->cnf.addr_gen_mode == IN6_ADDR_GEN_MODE_STABLE_PRIVACY || in is_addr_mode_generate_stable()
2569 idev->cnf.addr_gen_mode == IN6_ADDR_GEN_MODE_RANDOM; in is_addr_mode_generate_stable()
2583 int max_addresses = in6_dev->cnf.max_addresses; in addrconf_prefix_rcv_add_addr()
2595 in6_dev->cnf.optimistic_dad) && in addrconf_prefix_rcv_add_addr()
2772 if (pinfo->autoconf && in6_dev->cnf.autoconf) { in addrconf_prefix_rcv()
3113 if (idev->cnf.addr_gen_mode == IN6_ADDR_GEN_MODE_NONE) in sit_add_v4_addrs()
3190 idev->cnf.optimistic_dad) && in addrconf_add_linklocal()
3245 if (idev->cnf.stable_secret.initialized) in ipv6_generate_stable_address()
3246 secret = idev->cnf.stable_secret.secret; in ipv6_generate_stable_address()
3285 struct ipv6_stable_secret *s = &idev->cnf.stable_secret; in ipv6_gen_mode_random_init()
3289 s = &idev->cnf.stable_secret; in ipv6_gen_mode_random_init()
3308 switch (idev->cnf.addr_gen_mode) { in addrconf_addr_gen()
3370 idev->cnf.addr_gen_mode == IN6_ADDR_GEN_MODE_EUI64) in addrconf_dev_config()
3371 idev->cnf.addr_gen_mode = IN6_ADDR_GEN_MODE_RANDOM; in addrconf_dev_config()
3519 idev->cnf.mtu6 = dev->mtu; in addrconf_notify()
3539 if (idev && idev->cnf.disable_ipv6) in addrconf_notify()
3622 if (idev->cnf.mtu6 != dev->mtu && in addrconf_notify()
3625 idev->cnf.mtu6 = dev->mtu; in addrconf_notify()
3743 if (!unregister && !idev->cnf.disable_ipv6) { in addrconf_ifdown()
3748 _keep_addr = idev->cnf.keep_addr_on_down; in addrconf_ifdown()
3836 if (idev->cnf.forwarding) in addrconf_ifdown()
3887 if (idev->rs_probes++ < idev->cnf.rtr_solicits || idev->cnf.rtr_solicits < 0) { in addrconf_rs_timer()
3897 idev->rs_interval, idev->cnf.rtr_solicit_max_interval); in addrconf_rs_timer()
3900 idev->cnf.rtr_solicits) ? in addrconf_rs_timer()
3901 idev->cnf.rtr_solicit_delay : in addrconf_rs_timer()
3929 rand_num = prandom_u32() % (idev->cnf.rtr_solicit_delay ? : 1); in addrconf_dad_kick()
3932 if (idev->cnf.enhanced_dad || in addrconf_dad_kick()
3939 ifp->dad_probes = idev->cnf.dad_transmits; in addrconf_dad_kick()
3962 idev->cnf.accept_dad < 1) || in addrconf_dad_begin()
4055 idev->cnf.accept_dad > 1) && in addrconf_dad_work()
4056 !idev->cnf.disable_ipv6 && in addrconf_dad_work()
4066 idev->cnf.disable_ipv6 = 1; in addrconf_dad_work()
4180 ifp->idev->cnf.rtr_solicits != 0 && in addrconf_dad_completed()
4192 (ifp->idev->cnf.ndisc_notify || in addrconf_dad_completed()
4195 /*router=*/ !!ifp->idev->cnf.forwarding, in addrconf_dad_completed()
4213 ifp->idev->cnf.rtr_solicit_interval); in addrconf_dad_completed()
4530 unsigned long regen_advance = ifp->idev->cnf.regen_max_retry * in addrconf_verify_rtnl()
4531 ifp->idev->cnf.dad_transmits * in addrconf_verify_rtnl()
5462 static inline void ipv6_store_devconf(struct ipv6_devconf *cnf, in ipv6_store_devconf() argument
5468 array[DEVCONF_FORWARDING] = cnf->forwarding; in ipv6_store_devconf()
5469 array[DEVCONF_HOPLIMIT] = cnf->hop_limit; in ipv6_store_devconf()
5470 array[DEVCONF_MTU6] = cnf->mtu6; in ipv6_store_devconf()
5471 array[DEVCONF_ACCEPT_RA] = cnf->accept_ra; in ipv6_store_devconf()
5472 array[DEVCONF_ACCEPT_REDIRECTS] = cnf->accept_redirects; in ipv6_store_devconf()
5473 array[DEVCONF_AUTOCONF] = cnf->autoconf; in ipv6_store_devconf()
5474 array[DEVCONF_DAD_TRANSMITS] = cnf->dad_transmits; in ipv6_store_devconf()
5475 array[DEVCONF_RTR_SOLICITS] = cnf->rtr_solicits; in ipv6_store_devconf()
5477 jiffies_to_msecs(cnf->rtr_solicit_interval); in ipv6_store_devconf()
5479 jiffies_to_msecs(cnf->rtr_solicit_max_interval); in ipv6_store_devconf()
5481 jiffies_to_msecs(cnf->rtr_solicit_delay); in ipv6_store_devconf()
5482 array[DEVCONF_FORCE_MLD_VERSION] = cnf->force_mld_version; in ipv6_store_devconf()
5484 jiffies_to_msecs(cnf->mldv1_unsolicited_report_interval); in ipv6_store_devconf()
5486 jiffies_to_msecs(cnf->mldv2_unsolicited_report_interval); in ipv6_store_devconf()
5487 array[DEVCONF_USE_TEMPADDR] = cnf->use_tempaddr; in ipv6_store_devconf()
5488 array[DEVCONF_TEMP_VALID_LFT] = cnf->temp_valid_lft; in ipv6_store_devconf()
5489 array[DEVCONF_TEMP_PREFERED_LFT] = cnf->temp_prefered_lft; in ipv6_store_devconf()
5490 array[DEVCONF_REGEN_MAX_RETRY] = cnf->regen_max_retry; in ipv6_store_devconf()
5491 array[DEVCONF_MAX_DESYNC_FACTOR] = cnf->max_desync_factor; in ipv6_store_devconf()
5492 array[DEVCONF_MAX_ADDRESSES] = cnf->max_addresses; in ipv6_store_devconf()
5493 array[DEVCONF_ACCEPT_RA_DEFRTR] = cnf->accept_ra_defrtr; in ipv6_store_devconf()
5494 array[DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT] = cnf->accept_ra_min_hop_limit; in ipv6_store_devconf()
5495 array[DEVCONF_ACCEPT_RA_PINFO] = cnf->accept_ra_pinfo; in ipv6_store_devconf()
5497 array[DEVCONF_ACCEPT_RA_RTR_PREF] = cnf->accept_ra_rtr_pref; in ipv6_store_devconf()
5499 jiffies_to_msecs(cnf->rtr_probe_interval); in ipv6_store_devconf()
5501 array[DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN] = cnf->accept_ra_rt_info_min_plen; in ipv6_store_devconf()
5502 array[DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN] = cnf->accept_ra_rt_info_max_plen; in ipv6_store_devconf()
5505 array[DEVCONF_PROXY_NDP] = cnf->proxy_ndp; in ipv6_store_devconf()
5506 array[DEVCONF_ACCEPT_SOURCE_ROUTE] = cnf->accept_source_route; in ipv6_store_devconf()
5508 array[DEVCONF_OPTIMISTIC_DAD] = cnf->optimistic_dad; in ipv6_store_devconf()
5509 array[DEVCONF_USE_OPTIMISTIC] = cnf->use_optimistic; in ipv6_store_devconf()
5512 array[DEVCONF_MC_FORWARDING] = cnf->mc_forwarding; in ipv6_store_devconf()
5514 array[DEVCONF_DISABLE_IPV6] = cnf->disable_ipv6; in ipv6_store_devconf()
5515 array[DEVCONF_ACCEPT_DAD] = cnf->accept_dad; in ipv6_store_devconf()
5516 array[DEVCONF_FORCE_TLLAO] = cnf->force_tllao; in ipv6_store_devconf()
5517 array[DEVCONF_NDISC_NOTIFY] = cnf->ndisc_notify; in ipv6_store_devconf()
5518 array[DEVCONF_SUPPRESS_FRAG_NDISC] = cnf->suppress_frag_ndisc; in ipv6_store_devconf()
5519 array[DEVCONF_ACCEPT_RA_FROM_LOCAL] = cnf->accept_ra_from_local; in ipv6_store_devconf()
5520 array[DEVCONF_ACCEPT_RA_MTU] = cnf->accept_ra_mtu; in ipv6_store_devconf()
5521 array[DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN] = cnf->ignore_routes_with_linkdown; in ipv6_store_devconf()
5523 array[DEVCONF_USE_OIF_ADDRS_ONLY] = cnf->use_oif_addrs_only; in ipv6_store_devconf()
5524 array[DEVCONF_DROP_UNICAST_IN_L2_MULTICAST] = cnf->drop_unicast_in_l2_multicast; in ipv6_store_devconf()
5525 array[DEVCONF_DROP_UNSOLICITED_NA] = cnf->drop_unsolicited_na; in ipv6_store_devconf()
5526 array[DEVCONF_KEEP_ADDR_ON_DOWN] = cnf->keep_addr_on_down; in ipv6_store_devconf()
5527 array[DEVCONF_SEG6_ENABLED] = cnf->seg6_enabled; in ipv6_store_devconf()
5529 array[DEVCONF_SEG6_REQUIRE_HMAC] = cnf->seg6_require_hmac; in ipv6_store_devconf()
5531 array[DEVCONF_ENHANCED_DAD] = cnf->enhanced_dad; in ipv6_store_devconf()
5532 array[DEVCONF_ADDR_GEN_MODE] = cnf->addr_gen_mode; in ipv6_store_devconf()
5533 array[DEVCONF_DISABLE_POLICY] = cnf->disable_policy; in ipv6_store_devconf()
5534 array[DEVCONF_NDISC_TCLASS] = cnf->ndisc_tclass; in ipv6_store_devconf()
5535 array[DEVCONF_RPL_SEG_ENABLED] = cnf->rpl_seg_enabled; in ipv6_store_devconf()
5628 ipv6_store_devconf(&idev->cnf, nla_data(nla), nla_len(nla)); in inet6_fill_ifla6_attrs()
5652 if (nla_put_u8(skb, IFLA_INET6_ADDR_GEN_MODE, idev->cnf.addr_gen_mode)) in inet6_fill_ifla6_attrs()
5699 if (idev->cnf.rtr_solicits == 0) in inet6_set_iftoken()
5729 idev->cnf.rtr_solicit_interval); in inet6_set_iftoken()
5769 !idev->cnf.stable_secret.initialized && in check_stable_privacy()
5829 idev->cnf.addr_gen_mode = mode; in inet6_set_link_af()
6076 if (ifp->idev->cnf.forwarding) in __ipv6_ifa_notify()
6084 if (ifp->idev->cnf.forwarding) in __ipv6_ifa_notify()
6163 if (idev->cnf.disable_ipv6) in dev_disable_change()
6177 int changed = (!idev->cnf.disable_ipv6) ^ (!newf); in addrconf_disable_change()
6178 idev->cnf.disable_ipv6 = newf; in addrconf_disable_change()
6270 &idev->cnf); in addrconf_sysctl_proxy_ndp()
6313 if (idev->cnf.addr_gen_mode != new_val) { in addrconf_sysctl_addr_gen_mode()
6314 idev->cnf.addr_gen_mode = new_val; in addrconf_sysctl_addr_gen_mode()
6324 idev->cnf.addr_gen_mode != new_val) { in addrconf_sysctl_addr_gen_mode()
6325 idev->cnf.addr_gen_mode = new_val; in addrconf_sysctl_addr_gen_mode()
6390 idev->cnf.addr_gen_mode = in addrconf_sysctl_stable_secret()
6397 idev->cnf.addr_gen_mode = IN6_ADDR_GEN_MODE_STABLE_PRIVACY; in addrconf_sysctl_stable_secret()
6994 idev, &idev->cnf); in addrconf_sysctl_register()
7003 __addrconf_sysctl_unregister(dev_net(idev->dev), &idev->cnf, in addrconf_sysctl_unregister()