Lines Matching refs:ifa
507 const struct in_ifaddr *ifa; in smc_clc_prfx_set4_rcu() local
512 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_set4_rcu()
513 if (!inet_ifa_match(ipv4, ifa)) in smc_clc_prfx_set4_rcu()
515 prop->prefix_len = inet_mask_len(ifa->ifa_mask); in smc_clc_prfx_set4_rcu()
516 prop->outgoing_subnet = ifa->ifa_address & ifa->ifa_mask; in smc_clc_prfx_set4_rcu()
530 struct inet6_ifaddr *ifa; in smc_clc_prfx_set6_rcu() local
536 list_for_each_entry(ifa, &in6_dev->addr_list, if_list) { in smc_clc_prfx_set6_rcu()
537 if (ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL) in smc_clc_prfx_set6_rcu()
540 &ifa->addr, ifa->prefix_len); in smc_clc_prfx_set6_rcu()
541 ipv6_prfx[cnt].prefix_len = ifa->prefix_len; in smc_clc_prfx_set6_rcu()
602 const struct in_ifaddr *ifa; in smc_clc_prfx_match4_rcu() local
606 in_dev_for_each_ifa_rcu(ifa, in_dev) { in smc_clc_prfx_match4_rcu()
607 if (prop->prefix_len == inet_mask_len(ifa->ifa_mask) && in smc_clc_prfx_match4_rcu()
608 inet_ifa_match(prop->outgoing_subnet, ifa)) in smc_clc_prfx_match4_rcu()
622 struct inet6_ifaddr *ifa; in smc_clc_prfx_match6_rcu() local
630 list_for_each_entry(ifa, &in6_dev->addr_list, if_list) { in smc_clc_prfx_match6_rcu()
631 if (ipv6_addr_type(&ifa->addr) & IPV6_ADDR_LINKLOCAL) in smc_clc_prfx_match6_rcu()
634 if (ifa->prefix_len == ipv6_prfx[i].prefix_len && in smc_clc_prfx_match6_rcu()
635 ipv6_prefix_equal(&ifa->addr, &ipv6_prfx[i].prefix, in smc_clc_prfx_match6_rcu()
636 ifa->prefix_len)) in smc_clc_prfx_match6_rcu()