Lines Matching refs:unicast

139 	ARRAY_FOR_EACH(ipv6->unicast, i) {  in ipv6_pe_prefix_already_exists()
140 if (!ipv6->unicast[i].is_used || in ipv6_pe_prefix_already_exists()
141 ipv6->unicast[i].address.family != AF_INET6 || in ipv6_pe_prefix_already_exists()
142 !ipv6->unicast[i].is_temporary || in ipv6_pe_prefix_already_exists()
143 ipv6->unicast[i].addr_state == NET_ADDR_DEPRECATED) { in ipv6_pe_prefix_already_exists()
148 (uint8_t *)&ipv6->unicast[i].address.in6_addr, in ipv6_pe_prefix_already_exists()
163 ARRAY_FOR_EACH(ipv6->unicast, i) { in ipv6_pe_prefix_remove()
164 if (ipv6->unicast[i].is_used && in ipv6_pe_prefix_remove()
165 ipv6->unicast[i].address.family == AF_INET6 && in ipv6_pe_prefix_remove()
166 ipv6->unicast[i].is_temporary && in ipv6_pe_prefix_remove()
168 (uint8_t *)&ipv6->unicast[i].address.in6_addr, in ipv6_pe_prefix_remove()
171 &ipv6->unicast[i].address.in6_addr); in ipv6_pe_prefix_remove()
185 ARRAY_FOR_EACH(ipv6->unicast, i) { in ipv6_pe_prefix_update_lifetimes()
186 if (!(ipv6->unicast[i].is_used && in ipv6_pe_prefix_update_lifetimes()
187 ipv6->unicast[i].address.family == AF_INET6 && in ipv6_pe_prefix_update_lifetimes()
188 ipv6->unicast[i].is_temporary && in ipv6_pe_prefix_update_lifetimes()
189 ipv6->unicast[i].addr_state == NET_ADDR_PREFERRED && in ipv6_pe_prefix_update_lifetimes()
191 (uint8_t *)&ipv6->unicast[i].address.in6_addr, in ipv6_pe_prefix_update_lifetimes()
196 addr_age = k_uptime_seconds() - ipv6->unicast[i].addr_create_time; in ipv6_pe_prefix_update_lifetimes()
205 net_if_ipv6_addr_update_lifetime(&ipv6->unicast[i], vlifetime); in ipv6_pe_prefix_update_lifetimes()
452 ARRAY_FOR_EACH(ipv6->unicast, i) { in iface_cb()
453 if (!ipv6->unicast[i].is_used || in iface_cb()
454 ipv6->unicast[i].address.family != AF_INET6 || in iface_cb()
455 !ipv6->unicast[i].is_temporary) { in iface_cb()
460 (uint8_t *)&ipv6->unicast[i].address.in6_addr, in iface_cb()
469 &ipv6->unicast[i].address.in6_addr); in iface_cb()
474 &ipv6->unicast[i].address.in6_addr); in iface_cb()
688 ARRAY_FOR_EACH(ipv6->unicast, i) { in renewal_cb()
691 if (!ipv6->unicast[i].is_used || in renewal_cb()
692 ipv6->unicast[i].address.family != AF_INET6 || in renewal_cb()
693 !ipv6->unicast[i].is_temporary || in renewal_cb()
694 ipv6->unicast[i].addr_state == NET_ADDR_DEPRECATED) { in renewal_cb()
701 diff = (int32_t)(ipv6->unicast[i].addr_create_time - k_uptime_seconds()); in renewal_cb()
704 if (diff < (ipv6->unicast[i].addr_preferred_lifetime - in renewal_cb()
710 net_ipaddr_copy(&prefix, &ipv6->unicast[i].address.in6_addr); in renewal_cb()
714 net_sprint_ipv6_addr(&ipv6->unicast[i].address.in6_addr)); in renewal_cb()
716 ipv6->unicast[i].addr_state = NET_ADDR_DEPRECATED; in renewal_cb()
740 &ipv6->unicast[i].address.in6_addr, in renewal_cb()