Lines Matching refs:cnf
360 memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); in ipv6_add_dev()
361 ndev->cnf.mtu6 = dev->mtu; in ipv6_add_dev()
362 ndev->cnf.sysctl = NULL; in ipv6_add_dev()
368 if (ndev->cnf.forwarding) in ipv6_add_dev()
399 ndev->cnf.accept_dad = -1; in ipv6_add_dev()
406 ndev->cnf.rtr_solicits = 0; in ipv6_add_dev()
418 ndev->cnf.use_tempaddr = -1; in ipv6_add_dev()
438 if (ndev->cnf.forwarding && (dev->flags & IFF_MULTICAST)) in ipv6_add_dev()
471 if (idev->cnf.forwarding) in dev_forward_change()
474 if (idev->cnf.forwarding) in dev_forward_change()
483 if (idev->cnf.forwarding) in dev_forward_change()
499 int changed = (!idev->cnf.forwarding) ^ (!newf); in addrconf_forward_change()
500 idev->cnf.forwarding = newf; in addrconf_forward_change()
615 if (idev->cnf.disable_ipv6) { in ipv6_add_addr()
846 if (idev->cnf.use_tempaddr <= 0) { in ipv6_create_tempaddr()
855 if (ifp->regen_count++ >= idev->cnf.regen_max_retry) { in ipv6_create_tempaddr()
856 idev->cnf.use_tempaddr = -1; /*XXX*/ in ipv6_create_tempaddr()
881 idev->cnf.temp_valid_lft + age); in ipv6_create_tempaddr()
884 idev->cnf.temp_prefered_lft + age - in ipv6_create_tempaddr()
885 idev->cnf.max_desync_factor); in ipv6_create_tempaddr()
887 max_addresses = idev->cnf.max_addresses; in ipv6_create_tempaddr()
891 regen_advance = idev->cnf.regen_max_retry * in ipv6_create_tempaddr()
892 idev->cnf.dad_transmits * in ipv6_create_tempaddr()
1082 score->ifa->idev->cnf.use_tempaddr >= 2; in ipv6_get_saddr_eval()
1436 if (idev->cnf.accept_dad > 1 && !idev->cnf.disable_ipv6) { in addrconf_dad_failure()
1445 idev->cnf.disable_ipv6 = 1; in addrconf_dad_failure()
1664 idev->cnf.temp_prefered_lft * HZ - in ipv6_regen_rndid()
1665 idev->cnf.regen_max_retry * idev->cnf.dad_transmits * idev->nd_parms->retrans_time - in ipv6_regen_rndid()
1666 idev->cnf.max_desync_factor * HZ; in ipv6_regen_rndid()
1812 if (idev->cnf.disable_ipv6) in addrconf_add_dev()
1923 if (pinfo->autoconf && in6_dev->cnf.autoconf) { in addrconf_prefix_rcv()
1948 int max_addresses = in6_dev->cnf.max_addresses; in addrconf_prefix_rcv()
1952 if (in6_dev->cnf.optimistic_dad && in addrconf_prefix_rcv()
2067 max_valid = in6_dev->cnf.temp_valid_lft - age; in addrconf_prefix_rcv()
2071 max_prefered = in6_dev->cnf.temp_prefered_lft - in addrconf_prefix_rcv()
2072 in6_dev->cnf.max_desync_factor - in addrconf_prefix_rcv()
2096 if ((create || list_empty(&in6_dev->tempaddr_list)) && in6_dev->cnf.use_tempaddr > 0) { in addrconf_prefix_rcv()
2462 if (idev->cnf.optimistic_dad && in addrconf_add_linklocal()
2706 if (idev->cnf.mtu6 != dev->mtu && in addrconf_notify()
2709 idev->cnf.mtu6 = dev->mtu; in addrconf_notify()
2726 idev->cnf.mtu6 = dev->mtu; in addrconf_notify()
2917 if (idev->cnf.forwarding) in addrconf_rs_timer()
2925 if (ifp->probes++ < idev->cnf.rtr_solicits) { in addrconf_rs_timer()
2928 (ifp->probes == idev->cnf.rtr_solicits) ? in addrconf_rs_timer()
2929 idev->cnf.rtr_solicit_delay : in addrconf_rs_timer()
2930 idev->cnf.rtr_solicit_interval); in addrconf_rs_timer()
2960 rand_num = net_random() % (idev->cnf.rtr_solicit_delay ? : 1); in addrconf_dad_kick()
2962 ifp->probes = idev->cnf.dad_transmits; in addrconf_dad_kick()
2981 idev->cnf.accept_dad < 1 || in addrconf_dad_start()
3080 if (((ifp->idev->cnf.accept_ra == 1 && !ifp->idev->cnf.forwarding) || in addrconf_dad_completed()
3081 ifp->idev->cnf.accept_ra == 2) && in addrconf_dad_completed()
3082 ifp->idev->cnf.rtr_solicits > 0 && in addrconf_dad_completed()
3095 addrconf_mod_timer(ifp, AC_RS, ifp->idev->cnf.rtr_solicit_interval); in addrconf_dad_completed()
3357 unsigned long regen_advance = ifp->idev->cnf.regen_max_retry * in addrconf_verify()
3358 ifp->idev->cnf.dad_transmits * in addrconf_verify()
3919 static inline void ipv6_store_devconf(struct ipv6_devconf *cnf, in ipv6_store_devconf() argument
3925 array[DEVCONF_FORWARDING] = cnf->forwarding; in ipv6_store_devconf()
3926 array[DEVCONF_HOPLIMIT] = cnf->hop_limit; in ipv6_store_devconf()
3927 array[DEVCONF_MTU6] = cnf->mtu6; in ipv6_store_devconf()
3928 array[DEVCONF_ACCEPT_RA] = cnf->accept_ra; in ipv6_store_devconf()
3929 array[DEVCONF_ACCEPT_REDIRECTS] = cnf->accept_redirects; in ipv6_store_devconf()
3930 array[DEVCONF_AUTOCONF] = cnf->autoconf; in ipv6_store_devconf()
3931 array[DEVCONF_DAD_TRANSMITS] = cnf->dad_transmits; in ipv6_store_devconf()
3932 array[DEVCONF_RTR_SOLICITS] = cnf->rtr_solicits; in ipv6_store_devconf()
3934 jiffies_to_msecs(cnf->rtr_solicit_interval); in ipv6_store_devconf()
3936 jiffies_to_msecs(cnf->rtr_solicit_delay); in ipv6_store_devconf()
3937 array[DEVCONF_FORCE_MLD_VERSION] = cnf->force_mld_version; in ipv6_store_devconf()
3939 array[DEVCONF_USE_TEMPADDR] = cnf->use_tempaddr; in ipv6_store_devconf()
3940 array[DEVCONF_TEMP_VALID_LFT] = cnf->temp_valid_lft; in ipv6_store_devconf()
3941 array[DEVCONF_TEMP_PREFERED_LFT] = cnf->temp_prefered_lft; in ipv6_store_devconf()
3942 array[DEVCONF_REGEN_MAX_RETRY] = cnf->regen_max_retry; in ipv6_store_devconf()
3943 array[DEVCONF_MAX_DESYNC_FACTOR] = cnf->max_desync_factor; in ipv6_store_devconf()
3945 array[DEVCONF_MAX_ADDRESSES] = cnf->max_addresses; in ipv6_store_devconf()
3946 array[DEVCONF_ACCEPT_RA_DEFRTR] = cnf->accept_ra_defrtr; in ipv6_store_devconf()
3947 array[DEVCONF_ACCEPT_RA_PINFO] = cnf->accept_ra_pinfo; in ipv6_store_devconf()
3949 array[DEVCONF_ACCEPT_RA_RTR_PREF] = cnf->accept_ra_rtr_pref; in ipv6_store_devconf()
3951 jiffies_to_msecs(cnf->rtr_probe_interval); in ipv6_store_devconf()
3953 array[DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN] = cnf->accept_ra_rt_info_max_plen; in ipv6_store_devconf()
3956 array[DEVCONF_PROXY_NDP] = cnf->proxy_ndp; in ipv6_store_devconf()
3957 array[DEVCONF_ACCEPT_SOURCE_ROUTE] = cnf->accept_source_route; in ipv6_store_devconf()
3959 array[DEVCONF_OPTIMISTIC_DAD] = cnf->optimistic_dad; in ipv6_store_devconf()
3962 array[DEVCONF_MC_FORWARDING] = cnf->mc_forwarding; in ipv6_store_devconf()
3964 array[DEVCONF_DISABLE_IPV6] = cnf->disable_ipv6; in ipv6_store_devconf()
3965 array[DEVCONF_ACCEPT_DAD] = cnf->accept_dad; in ipv6_store_devconf()
3966 array[DEVCONF_FORCE_TLLAO] = cnf->force_tllao; in ipv6_store_devconf()
4048 ipv6_store_devconf(&idev->cnf, nla_data(nla), nla_len(nla)); in inet6_fill_ifla6_attrs()
4282 if (ifp->idev->cnf.forwarding) in __ipv6_ifa_notify()
4286 if (ifp->idev->cnf.forwarding) in __ipv6_ifa_notify()
4338 if (idev->cnf.disable_ipv6) in dev_disable_change()
4353 int changed = (!idev->cnf.disable_ipv6) ^ (!newf); in addrconf_disable_change()
4354 idev->cnf.disable_ipv6 = newf; in addrconf_disable_change()
4716 idev, &idev->cnf); in addrconf_sysctl_register()
4721 __addrconf_sysctl_unregister(&idev->cnf); in addrconf_sysctl_unregister()