Home
last modified time | relevance | path

Searched refs:ifprefix (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dnet_if.c2485 static void prefix_lifetime_expired(struct net_if_ipv6_prefix *ifprefix) in prefix_lifetime_expired() argument
2489 net_if_lock(ifprefix->iface); in prefix_lifetime_expired()
2492 net_sprint_ipv6_addr(&ifprefix->prefix), in prefix_lifetime_expired()
2493 ifprefix->len); in prefix_lifetime_expired()
2495 ifprefix->is_used = false; in prefix_lifetime_expired()
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()
2504 ifprefix->len); in prefix_lifetime_expired()
2509 net_ipaddr_copy(&info.addr, &ifprefix->prefix); in prefix_lifetime_expired()
2510 info.len = ifprefix->len; in prefix_lifetime_expired()
[all …]
/Zephyr-latest/tests/net/ipv6/src/
Dmain.c839 struct net_if_ipv6_prefix *ifprefix; in ZTEST() local
847 ifprefix = net_if_ipv6_prefix_add(TEST_NET_IF, &prefix, len, lifetime); in ZTEST()
849 net_if_ipv6_prefix_set_lf(ifprefix, false); in ZTEST()
850 net_if_ipv6_prefix_set_timer(ifprefix, lifetime); in ZTEST()
852 zassert_equal(ifprefix->lifetime.wrap_counter, 1999, in ZTEST()
854 ifprefix->lifetime.wrap_counter); in ZTEST()
856 NET_TIMEOUT_MAX_VALUE * (uint64_t)ifprefix->lifetime.wrap_counter; in ZTEST()
858 zassert_equal(remaining, ifprefix->lifetime.timer_timeout, in ZTEST()
860 ifprefix->lifetime.timer_timeout); in ZTEST()
/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6.c1723 struct net_if_ipv6_prefix *ifprefix; in dhcpv6_handle_reply() local
1756 ifprefix = net_if_ipv6_prefix_lookup(iface, &ia_pd.iaprefix.prefix, in dhcpv6_handle_reply()
1758 if (ifprefix != NULL) { in dhcpv6_handle_reply()
1759 net_if_ipv6_prefix_set_timer(ifprefix, ia_pd.iaprefix.valid_lifetime); in dhcpv6_handle_reply()