Lines Matching refs:ipv6
92 struct net_if_ipv6 ipv6; member
1041 int net_if_config_ipv6_get(struct net_if *iface, struct net_if_ipv6 **ipv6) in net_if_config_ipv6_get() argument
1053 if (iface->config.ip.ipv6) { in net_if_config_ipv6_get()
1054 if (ipv6) { in net_if_config_ipv6_get()
1055 *ipv6 = iface->config.ip.ipv6; in net_if_config_ipv6_get()
1068 iface->config.ip.ipv6 = &ipv6_addresses[i].ipv6; in net_if_config_ipv6_get()
1071 if (ipv6) { in net_if_config_ipv6_get()
1072 *ipv6 = &ipv6_addresses[i].ipv6; in net_if_config_ipv6_get()
1100 if (!iface->config.ip.ipv6) { in net_if_config_ipv6_put()
1112 iface->config.ip.ipv6 = NULL; in net_if_config_ipv6_put()
1135 if (iface->config.ip.ipv6 == NULL) { in join_mcast_allnodes()
1155 if (iface->config.ip.ipv6 == NULL) { in join_mcast_solicit_node()
1178 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in leave_mcast_all() local
1181 if (!ipv6) { in leave_mcast_all()
1186 if (!ipv6->mcast[i].is_used || in leave_mcast_all()
1187 !ipv6->mcast[i].is_joined) { in leave_mcast_all()
1191 net_ipv6_mld_leave(iface, &ipv6->mcast[i].address.in6_addr); in leave_mcast_all()
1199 if (iface->config.ip.ipv6 == NULL) { in join_mcast_nodes()
1322 struct net_if_ipv6 *ipv6; in net_if_start_dad() local
1330 ret = net_if_config_ipv6_get(iface, &ipv6); in net_if_start_dad()
1339 if (!ipv6) { in net_if_start_dad()
1345 ((uint8_t *)&ipv6->network_counter), in net_if_start_dad()
1348 (sizeof(ipv6->network_counter)), in net_if_start_dad()
1351 (ipv6->iid ? ipv6->iid->dad_count : 0U), in net_if_start_dad()
1367 IF_ENABLED(CONFIG_NET_IPV6_IID_STABLE, (ipv6->iid = ifaddr)); in net_if_start_dad()
1372 ARRAY_FOR_EACH(ipv6->unicast, i) { in net_if_start_dad()
1373 if (!ipv6->unicast[i].is_used || in net_if_start_dad()
1374 ipv6->unicast[i].address.family != AF_INET6 || in net_if_start_dad()
1375 &ipv6->unicast[i] == ifaddr || in net_if_start_dad()
1377 &ipv6->unicast[i].address.in6_addr)) { in net_if_start_dad()
1381 net_if_ipv6_start_dad(iface, &ipv6->unicast[i]); in net_if_start_dad()
1461 struct net_if_ipv6 *ipv6, *next; in rs_timeout() local
1472 ipv6, next, rs_node) { in rs_timeout()
1476 delay = (int32_t)(ipv6->rs_start + RS_TIMEOUT - current_time); in rs_timeout()
1482 sys_slist_remove(&active_rs_timers, NULL, &ipv6->rs_node); in rs_timeout()
1483 sys_slist_append(&expired_list, &ipv6->rs_node); in rs_timeout()
1485 ipv6 = NULL; in rs_timeout()
1488 if ((ipv6 != NULL) && (delay > 0)) { in rs_timeout()
1489 k_work_reschedule(&rs_timer, K_MSEC(ipv6->rs_start + in rs_timeout()
1495 SYS_SLIST_FOR_EACH_CONTAINER(&expired_list, ipv6, rs_node) { in rs_timeout()
1499 ipv6->rs_count++; in rs_timeout()
1502 if (tmp->config.ip.ipv6 == ipv6) { in rs_timeout()
1510 iface, ipv6->rs_count); in rs_timeout()
1511 if (ipv6->rs_count < RS_COUNT) { in rs_timeout()
1515 NET_DBG("Interface IPv6 config %p not found", ipv6); in rs_timeout()
1522 struct net_if_ipv6 *ipv6; in net_if_start_rs() local
1530 ipv6 = iface->config.ip.ipv6; in net_if_start_rs()
1531 if (!ipv6) { in net_if_start_rs()
1538 ipv6->rs_start = k_uptime_get_32(); in net_if_start_rs()
1541 sys_slist_append(&active_rs_timers, &ipv6->rs_node); in net_if_start_rs()
1556 struct net_if_ipv6 *ipv6; in net_if_stop_rs() local
1560 ipv6 = iface->config.ip.ipv6; in net_if_stop_rs()
1561 if (!ipv6) { in net_if_stop_rs()
1568 sys_slist_find_and_remove(&active_rs_timers, &ipv6->rs_node); in net_if_stop_rs()
1597 if (!iface->config.ip.ipv6) { in net_if_nbr_reachability_hint()
1614 struct net_if_ipv6 *ipv6; in rejoin_ipv6_mcast_groups() local
1623 if (net_if_config_ipv6_get(iface, &ipv6) < 0) { in rejoin_ipv6_mcast_groups()
1628 ARRAY_FOR_EACH(ipv6->unicast, i) { in rejoin_ipv6_mcast_groups()
1629 if (!ipv6->unicast[i].is_used) { in rejoin_ipv6_mcast_groups()
1633 join_mcast_nodes(iface, &ipv6->unicast[i].address.in6_addr); in rejoin_ipv6_mcast_groups()
1637 ARRAY_FOR_EACH(ipv6->mcast, i) { in rejoin_ipv6_mcast_groups()
1640 if (!ipv6->mcast[i].is_used || in rejoin_ipv6_mcast_groups()
1641 net_if_ipv6_maddr_is_joined(&ipv6->mcast[i])) { in rejoin_ipv6_mcast_groups()
1645 ret = net_ipv6_mld_join(iface, &ipv6->mcast[i].address.in6_addr); in rejoin_ipv6_mcast_groups()
1648 net_sprint_ipv6_addr(&ipv6->mcast[i].address.in6_addr), in rejoin_ipv6_mcast_groups()
1652 net_sprint_ipv6_addr(&ipv6->mcast[i].address.in6_addr), in rejoin_ipv6_mcast_groups()
1666 struct net_if_ipv6 *ipv6; in clear_joined_ipv6_mcast_groups() local
1674 if (net_if_config_ipv6_get(iface, &ipv6) < 0) { in clear_joined_ipv6_mcast_groups()
1678 ARRAY_FOR_EACH(ipv6->mcast, i) { in clear_joined_ipv6_mcast_groups()
1679 if (!ipv6->mcast[i].is_used) { in clear_joined_ipv6_mcast_groups()
1683 net_if_ipv6_maddr_leave(iface, &ipv6->mcast[i]); in clear_joined_ipv6_mcast_groups()
1701 ARRAY_FOR_EACH(iface->config.ip.ipv6->unicast, i) { in address_expired()
1702 if (&iface->config.ip.ipv6->unicast[i] == ifaddr) { in address_expired()
1704 &iface->config.ip.ipv6->unicast[i].address.in6_addr); in address_expired()
1787 struct net_if_ipv6 *ipv6; in net_if_ipv6_addr_lookup() local
1791 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_addr_lookup()
1792 if (!ipv6) { in net_if_ipv6_addr_lookup()
1797 ARRAY_FOR_EACH(ipv6->unicast, i) { in net_if_ipv6_addr_lookup()
1798 if (!ipv6->unicast[i].is_used || in net_if_ipv6_addr_lookup()
1799 ipv6->unicast[i].address.family != AF_INET6) { in net_if_ipv6_addr_lookup()
1805 ipv6->unicast[i].address.in6_addr.s6_addr, in net_if_ipv6_addr_lookup()
1812 ifaddr = &ipv6->unicast[i]; in net_if_ipv6_addr_lookup()
1829 struct net_if_ipv6 *ipv6; in net_if_ipv6_addr_lookup_by_iface() local
1833 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_addr_lookup_by_iface()
1834 if (!ipv6) { in net_if_ipv6_addr_lookup_by_iface()
1838 ARRAY_FOR_EACH(ipv6->unicast, i) { in net_if_ipv6_addr_lookup_by_iface()
1839 if (!ipv6->unicast[i].is_used || in net_if_ipv6_addr_lookup_by_iface()
1840 ipv6->unicast[i].address.family != AF_INET6) { in net_if_ipv6_addr_lookup_by_iface()
1846 ipv6->unicast[i].address.in6_addr.s6_addr, in net_if_ipv6_addr_lookup_by_iface()
1848 ifaddr = &ipv6->unicast[i]; in net_if_ipv6_addr_lookup_by_iface()
1904 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in ipv6_addr_find() local
1906 ARRAY_FOR_EACH(ipv6->unicast, i) { in ipv6_addr_find()
1907 if (!ipv6->unicast[i].is_used) { in ipv6_addr_find()
1912 addr, &ipv6->unicast[i].address.in6_addr)) { in ipv6_addr_find()
1914 return &ipv6->unicast[i]; in ipv6_addr_find()
1955 struct net_if_ipv6 *ipv6; in net_if_ipv6_addr_add() local
1959 if (net_if_config_ipv6_get(iface, &ipv6) < 0) { in net_if_ipv6_addr_add()
1968 ARRAY_FOR_EACH(ipv6->unicast, i) { in net_if_ipv6_addr_add()
1969 if (ipv6->unicast[i].is_used) { in net_if_ipv6_addr_add()
1973 net_if_addr_init(&ipv6->unicast[i], addr, addr_type, in net_if_ipv6_addr_add()
1995 &ipv6->unicast[i].address.in6_addr); in net_if_ipv6_addr_add()
1997 net_if_ipv6_start_dad(iface, &ipv6->unicast[i]); in net_if_ipv6_addr_add()
2002 ipv6->unicast[i].addr_state = NET_ADDR_PREFERRED; in net_if_ipv6_addr_add()
2007 &ipv6->unicast[i].address.in6_addr, in net_if_ipv6_addr_add()
2010 ifaddr = &ipv6->unicast[i]; in net_if_ipv6_addr_add()
2022 struct net_if_ipv6 *ipv6; in net_if_ipv6_addr_rm() local
2032 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_addr_rm()
2033 if (!ipv6) { in net_if_ipv6_addr_rm()
2132 struct net_if_ipv6 *ipv6; in net_if_ipv6_addr_foreach() local
2140 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_addr_foreach()
2141 if (ipv6 == NULL) { in net_if_ipv6_addr_foreach()
2145 ARRAY_FOR_EACH(ipv6->unicast, i) { in net_if_ipv6_addr_foreach()
2146 struct net_if_addr *if_addr = &ipv6->unicast[i]; in net_if_ipv6_addr_foreach()
2163 struct net_if_ipv6 *ipv6; in net_if_ipv6_maddr_add() local
2167 if (net_if_config_ipv6_get(iface, &ipv6) < 0) { in net_if_ipv6_maddr_add()
2183 ARRAY_FOR_EACH(ipv6->mcast, i) { in net_if_ipv6_maddr_add()
2184 if (ipv6->mcast[i].is_used) { in net_if_ipv6_maddr_add()
2188 ipv6->mcast[i].is_used = true; in net_if_ipv6_maddr_add()
2189 ipv6->mcast[i].address.family = AF_INET6; in net_if_ipv6_maddr_add()
2190 memcpy(&ipv6->mcast[i].address.in6_addr, addr, 16); in net_if_ipv6_maddr_add()
2198 &ipv6->mcast[i].address.in6_addr, in net_if_ipv6_maddr_add()
2201 ifmaddr = &ipv6->mcast[i]; in net_if_ipv6_maddr_add()
2214 struct net_if_ipv6 *ipv6; in net_if_ipv6_maddr_rm() local
2218 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_maddr_rm()
2219 if (!ipv6) { in net_if_ipv6_maddr_rm()
2223 ARRAY_FOR_EACH(ipv6->mcast, i) { in net_if_ipv6_maddr_rm()
2224 if (!ipv6->mcast[i].is_used) { in net_if_ipv6_maddr_rm()
2228 if (!net_ipv6_addr_cmp(&ipv6->mcast[i].address.in6_addr, in net_if_ipv6_maddr_rm()
2233 ipv6->mcast[i].is_used = false; in net_if_ipv6_maddr_rm()
2241 &ipv6->mcast[i].address.in6_addr, in net_if_ipv6_maddr_rm()
2257 struct net_if_ipv6 *ipv6; in net_if_ipv6_maddr_foreach() local
2265 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_maddr_foreach()
2266 if (!ipv6) { in net_if_ipv6_maddr_foreach()
2271 if (!ipv6->mcast[i].is_used) { in net_if_ipv6_maddr_foreach()
2275 cb(iface, &ipv6->mcast[i], user_data); in net_if_ipv6_maddr_foreach()
2288 struct net_if_ipv6 *ipv6; in net_if_ipv6_maddr_lookup() local
2296 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_maddr_lookup()
2297 if (!ipv6) { in net_if_ipv6_maddr_lookup()
2302 ARRAY_FOR_EACH(ipv6->mcast, i) { in net_if_ipv6_maddr_lookup()
2303 if (!ipv6->mcast[i].is_used || in net_if_ipv6_maddr_lookup()
2304 ipv6->mcast[i].address.family != AF_INET6) { in net_if_ipv6_maddr_lookup()
2310 ipv6->mcast[i].address.in6_addr.s6_addr, in net_if_ipv6_maddr_lookup()
2316 ifmaddr = &ipv6->mcast[i]; in net_if_ipv6_maddr_lookup()
2355 struct net_if_ipv6 *ipv6; in net_if_ipv6_get_ll() local
2359 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_get_ll()
2360 if (!ipv6) { in net_if_ipv6_get_ll()
2364 ARRAY_FOR_EACH(ipv6->unicast, i) { in net_if_ipv6_get_ll()
2365 if (!ipv6->unicast[i].is_used || in net_if_ipv6_get_ll()
2367 ipv6->unicast[i].addr_state != addr_state) || in net_if_ipv6_get_ll()
2368 ipv6->unicast[i].address.family != AF_INET6) { in net_if_ipv6_get_ll()
2372 if (net_ipv6_is_ll_addr(&ipv6->unicast[i].address.in6_addr)) { in net_if_ipv6_get_ll()
2373 addr = &ipv6->unicast[i].address.in6_addr; in net_if_ipv6_get_ll()
2412 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in check_global_addr() local
2414 if (!ipv6) { in check_global_addr()
2418 ARRAY_FOR_EACH(ipv6->unicast, i) { in check_global_addr()
2419 if (!ipv6->unicast[i].is_used || in check_global_addr()
2420 (ipv6->unicast[i].addr_state != state) || in check_global_addr()
2421 ipv6->unicast[i].address.family != AF_INET6) { in check_global_addr()
2425 if (!net_ipv6_is_ll_addr(&ipv6->unicast[i].address.in6_addr)) { in check_global_addr()
2426 return &ipv6->unicast[i].address.in6_addr; in check_global_addr()
2464 struct net_if_ipv6 *ipv6, in remove_prefix_addresses() argument
2468 ARRAY_FOR_EACH(ipv6->unicast, i) { in remove_prefix_addresses()
2469 if (!ipv6->unicast[i].is_used || in remove_prefix_addresses()
2470 ipv6->unicast[i].address.family != AF_INET6 || in remove_prefix_addresses()
2471 ipv6->unicast[i].addr_type != NET_ADDR_AUTOCONF) { in remove_prefix_addresses()
2477 ipv6->unicast[i].address.in6_addr.s6_addr, in remove_prefix_addresses()
2480 &ipv6->unicast[i].address.in6_addr); in remove_prefix_addresses()
2487 struct net_if_ipv6 *ipv6; in prefix_lifetime_expired() local
2497 if (net_if_config_ipv6_get(ifprefix->iface, &ipv6) < 0) { in prefix_lifetime_expired()
2503 remove_prefix_addresses(ifprefix->iface, ipv6, &ifprefix->prefix, in prefix_lifetime_expired()
2608 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in ipv6_prefix_find() local
2610 if (!ipv6) { in ipv6_prefix_find()
2614 ARRAY_FOR_EACH(ipv6->prefix, i) { in ipv6_prefix_find()
2615 if (!ipv6->prefix[i].is_used) { in ipv6_prefix_find()
2619 if (net_ipv6_addr_cmp(prefix, &ipv6->prefix[i].prefix) && in ipv6_prefix_find()
2620 prefix_len == ipv6->prefix[i].len) { in ipv6_prefix_find()
2621 return &ipv6->prefix[i]; in ipv6_prefix_find()
2651 struct net_if_ipv6 *ipv6; in net_if_ipv6_prefix_add() local
2655 if (net_if_config_ipv6_get(iface, &ipv6) < 0) { in net_if_ipv6_prefix_add()
2664 if (!ipv6) { in net_if_ipv6_prefix_add()
2668 ARRAY_FOR_EACH(ipv6->prefix, i) { in net_if_ipv6_prefix_add()
2669 if (ipv6->prefix[i].is_used) { in net_if_ipv6_prefix_add()
2673 net_if_ipv6_prefix_init(iface, &ipv6->prefix[i], prefix, in net_if_ipv6_prefix_add()
2693 ifprefix = &ipv6->prefix[i]; in net_if_ipv6_prefix_add()
2707 struct net_if_ipv6 *ipv6; in net_if_ipv6_prefix_rm() local
2711 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_prefix_rm()
2712 if (!ipv6) { in net_if_ipv6_prefix_rm()
2716 ARRAY_FOR_EACH(ipv6->prefix, i) { in net_if_ipv6_prefix_rm()
2717 if (!ipv6->prefix[i].is_used) { in net_if_ipv6_prefix_rm()
2721 if (!net_ipv6_addr_cmp(&ipv6->prefix[i].prefix, addr) || in net_if_ipv6_prefix_rm()
2722 ipv6->prefix[i].len != len) { in net_if_ipv6_prefix_rm()
2726 net_if_ipv6_prefix_unset_timer(&ipv6->prefix[i]); in net_if_ipv6_prefix_rm()
2728 ipv6->prefix[i].is_used = false; in net_if_ipv6_prefix_rm()
2733 remove_prefix_addresses(iface, ipv6, addr, len); in net_if_ipv6_prefix_rm()
2763 struct net_if_ipv6 *ipv6; in net_if_ipv6_prefix_get() local
2775 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_prefix_get()
2776 if (!ipv6) { in net_if_ipv6_prefix_get()
2780 ARRAY_FOR_EACH(ipv6->prefix, i) { in net_if_ipv6_prefix_get()
2781 if (!ipv6->prefix[i].is_used) { in net_if_ipv6_prefix_get()
2785 if (net_ipv6_is_prefix(ipv6->prefix[i].prefix.s6_addr, in net_if_ipv6_prefix_get()
2787 ipv6->prefix[i].len)) { in net_if_ipv6_prefix_get()
2788 if (!prefix || prefix->len > ipv6->prefix[i].len) { in net_if_ipv6_prefix_get()
2789 prefix = &ipv6->prefix[i]; in net_if_ipv6_prefix_get()
2805 struct net_if_ipv6 *ipv6; in net_if_ipv6_prefix_lookup() local
2809 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_prefix_lookup()
2810 if (!ipv6) { in net_if_ipv6_prefix_lookup()
2814 ARRAY_FOR_EACH(ipv6->prefix, i) { in net_if_ipv6_prefix_lookup()
2815 if (!ipv6->prefix[i].is_used) { in net_if_ipv6_prefix_lookup()
2819 if (net_ipv6_is_prefix(ipv6->prefix[i].prefix.s6_addr, in net_if_ipv6_prefix_lookup()
2821 prefix = &ipv6->prefix[i]; in net_if_ipv6_prefix_lookup()
2837 struct net_if_ipv6 *ipv6; in net_if_ipv6_addr_onlink() local
2845 ipv6 = tmp->config.ip.ipv6; in net_if_ipv6_addr_onlink()
2846 if (!ipv6) { in net_if_ipv6_addr_onlink()
2851 ARRAY_FOR_EACH(ipv6->prefix, i) { in net_if_ipv6_addr_onlink()
2852 if (ipv6->prefix[i].is_used && in net_if_ipv6_addr_onlink()
2853 net_ipv6_is_prefix(ipv6->prefix[i].prefix.s6_addr, in net_if_ipv6_addr_onlink()
2855 ipv6->prefix[i].len)) { in net_if_ipv6_addr_onlink()
2942 if (!iface->config.ip.ipv6) { in net_if_ipv6_get_mcast_hop_limit()
2946 ret = iface->config.ip.ipv6->mcast_hop_limit; in net_if_ipv6_get_mcast_hop_limit()
2961 if (!iface->config.ip.ipv6) { in net_if_ipv6_set_mcast_hop_limit()
2965 iface->config.ip.ipv6->mcast_hop_limit = hop_limit; in net_if_ipv6_set_mcast_hop_limit()
2980 if (!iface->config.ip.ipv6) { in net_if_ipv6_get_hop_limit()
2984 ret = iface->config.ip.ipv6->hop_limit; in net_if_ipv6_get_hop_limit()
2999 if (!iface->config.ip.ipv6) { in net_if_ipv6_set_hop_limit()
3003 iface->config.ip.ipv6->hop_limit = hop_limit; in net_if_ipv6_set_hop_limit()
3055 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in net_if_ipv6_get_best_match() local
3065 ipv6 = iface->config.ip.ipv6; in net_if_ipv6_get_best_match()
3066 if (!ipv6) { in net_if_ipv6_get_best_match()
3070 ARRAY_FOR_EACH(ipv6->unicast, i) { in net_if_ipv6_get_best_match()
3071 if (!is_proper_ipv6_address(&ipv6->unicast[i])) { in net_if_ipv6_get_best_match()
3075 len = get_diff_ipv6(dst, &ipv6->unicast[i].address.in6_addr); in net_if_ipv6_get_best_match()
3084 if (ipv6->unicast[i].is_mesh_local && len < 64 && in net_if_ipv6_get_best_match()
3090 ipv6->unicast[i].is_temporary, in net_if_ipv6_get_best_match()
3093 temp_addr = &ipv6->unicast[i].address.in6_addr; in net_if_ipv6_get_best_match()
3097 src = &ipv6->unicast[i].address.in6_addr; in net_if_ipv6_get_best_match()
3101 if (!ipv6->unicast[i].is_temporary) { in net_if_ipv6_get_best_match()
3102 public_addr = &ipv6->unicast[i]; in net_if_ipv6_get_best_match()
3107 src = &ipv6->unicast[i].address.in6_addr; in net_if_ipv6_get_best_match()
3239 uint32_t net_if_ipv6_calc_reachable_time(struct net_if_ipv6 *ipv6) in net_if_ipv6_calc_reachable_time() argument
3243 min_reachable = (MIN_RANDOM_NUMER * ipv6->base_reachable_time) in net_if_ipv6_calc_reachable_time()
3245 max_reachable = (MAX_RANDOM_NUMER * ipv6->base_reachable_time) in net_if_ipv6_calc_reachable_time()
3265 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in iface_ipv6_start() local
3267 if (ipv6 != NULL) { in iface_ipv6_start()
3269 &ipv6->mcast[0].address.in6_addr); in iface_ipv6_start()
3278 struct net_if_ipv6 *ipv6 = iface->config.ip.ipv6; in iface_ipv6_stop() local
3285 if (ipv6 == NULL) { in iface_ipv6_stop()
3289 IF_ENABLED(CONFIG_NET_IPV6_IID_STABLE, (ipv6->network_counter++)); in iface_ipv6_stop()
3290 IF_ENABLED(CONFIG_NET_IPV6_IID_STABLE, (ipv6->iid = NULL)); in iface_ipv6_stop()
3293 ARRAY_FOR_EACH(ipv6->unicast, i) { in iface_ipv6_stop()
3294 if (ipv6->unicast[i].is_used && in iface_ipv6_stop()
3295 ipv6->unicast[i].address.family == AF_INET6 && in iface_ipv6_stop()
3296 ipv6->unicast[i].addr_type == NET_ADDR_AUTOCONF) { in iface_ipv6_stop()
3298 &ipv6->unicast[i].address.in6_addr); in iface_ipv6_stop()
3321 ipv6_addresses[i].ipv6.hop_limit = CONFIG_NET_INITIAL_HOP_LIMIT; in iface_ipv6_init()
3322 ipv6_addresses[i].ipv6.mcast_hop_limit = CONFIG_NET_INITIAL_MCAST_HOP_LIMIT; in iface_ipv6_init()
3323 ipv6_addresses[i].ipv6.base_reachable_time = REACHABLE_TIME; in iface_ipv6_init()
3325 net_if_ipv6_set_reachable_time(&ipv6_addresses[i].ipv6); in iface_ipv6_init()
4988 struct net_if_ipv6 *ipv6 = in get_ifaddr() local
4989 COND_CODE_1(CONFIG_NET_IPV6, (iface->config.ip.ipv6), (NULL)); in get_ifaddr()
4994 if (ipv6 == NULL) { in get_ifaddr()
5001 ARRAY_FOR_EACH(ipv6->unicast, i) { in get_ifaddr()
5004 if (!ipv6->unicast[i].is_used) { in get_ifaddr()
5012 &ipv6->unicast[i].address.in6_addr, in get_ifaddr()
5019 if (!net_ipv6_addr_cmp(&ipv6->unicast[i].address.in6_addr, addr)) { in get_ifaddr()
5027 ifaddr = &ipv6->unicast[found]; in get_ifaddr()
5071 struct net_if_ipv6 *ipv6; in remove_ipv6_ifaddr() local
5075 ipv6 = COND_CODE_1(CONFIG_NET_IPV6, (iface->config.ip.ipv6), (NULL)); in remove_ipv6_ifaddr()
5076 if (!ipv6) { in remove_ipv6_ifaddr()