Lines Matching refs:ifprefix
2485 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()
2514 ifprefix->iface, in prefix_lifetime_expired()
2518 net_mgmt_event_notify(NET_EVENT_IPV6_PREFIX_DEL, ifprefix->iface); in prefix_lifetime_expired()
2521 net_if_unlock(ifprefix->iface); in prefix_lifetime_expired()
2524 static void prefix_timer_remove(struct net_if_ipv6_prefix *ifprefix) in prefix_timer_remove() argument
2529 net_sprint_ipv6_addr(&ifprefix->prefix), in prefix_timer_remove()
2530 ifprefix->len); in prefix_timer_remove()
2533 &ifprefix->lifetime.node); in prefix_timer_remove()
2535 net_timeout_set(&ifprefix->lifetime, 0, 0); in prefix_timer_remove()
2588 static void prefix_start_timer(struct net_if_ipv6_prefix *ifprefix, in prefix_start_timer() argument
2594 &ifprefix->lifetime.node); in prefix_start_timer()
2596 &ifprefix->lifetime.node); in prefix_start_timer()
2598 net_timeout_set(&ifprefix->lifetime, lifetime, k_uptime_get_32()); in prefix_start_timer()
2629 struct net_if_ipv6_prefix *ifprefix, in net_if_ipv6_prefix_init() argument
2633 ifprefix->is_used = true; in net_if_ipv6_prefix_init()
2634 ifprefix->len = len; in net_if_ipv6_prefix_init()
2635 ifprefix->iface = iface; in net_if_ipv6_prefix_init()
2636 net_ipaddr_copy(&ifprefix->prefix, addr); in net_if_ipv6_prefix_init()
2639 ifprefix->is_infinite = true; in net_if_ipv6_prefix_init()
2641 ifprefix->is_infinite = false; in net_if_ipv6_prefix_init()
2650 struct net_if_ipv6_prefix *ifprefix = NULL; in net_if_ipv6_prefix_add() local
2659 ifprefix = ipv6_prefix_find(iface, prefix, len); in net_if_ipv6_prefix_add()
2660 if (ifprefix) { in net_if_ipv6_prefix_add()
2693 ifprefix = &ipv6->prefix[i]; in net_if_ipv6_prefix_add()
2700 return ifprefix; in net_if_ipv6_prefix_add()