Lines Matching refs:net_ipv6_nbr_data

92 		  sizeof(struct net_ipv6_nbr_data),
137 static inline struct net_nbr *get_nbr_from_data(struct net_ipv6_nbr_data *data) in get_nbr_from_data()
155 if (new_state == net_ipv6_nbr_data(nbr)->state || in ipv6_nbr_set_state()
156 net_ipv6_nbr_data(nbr)->state == NET_IPV6_NBR_STATE_STATIC) { in ipv6_nbr_set_state()
161 net_ipv6_nbr_state2str(net_ipv6_nbr_data(nbr)->state), in ipv6_nbr_set_state()
164 net_ipv6_nbr_data(nbr)->state = new_state; in ipv6_nbr_set_state()
166 if (net_ipv6_nbr_data(nbr)->state == NET_IPV6_NBR_STATE_STALE) { in ipv6_nbr_set_state()
168 net_ipv6_nbr_data(nbr)->stale_counter = stale_counter++; in ipv6_nbr_set_state()
174 struct net_ipv6_nbr_data *data = NULL; in ipv6_nbr_set_state()
185 data = net_ipv6_nbr_data(nbr); in ipv6_nbr_set_state()
252 i, nbr, nbr->ref, net_ipv6_nbr_data(nbr)->ns_count, in nbr_print()
253 net_ipv6_nbr_data(nbr)->is_router, in nbr_print()
254 net_ipv6_nbr_data(nbr)->state, in nbr_print()
255 net_ipv6_nbr_data(nbr)->link_metric, in nbr_print()
256 net_ipv6_nbr_data(nbr)->pending, in nbr_print()
262 net_sprint_ipv6_addr(&net_ipv6_nbr_data(nbr)->addr)); in nbr_print()
286 if (net_ipv6_addr_cmp(&net_ipv6_nbr_data(nbr)->addr, addr)) { in nbr_lookup()
294 static inline void nbr_clear_ns_pending(struct net_ipv6_nbr_data *data) in nbr_clear_ns_pending()
308 nbr_clear_ns_pending(net_ipv6_nbr_data(nbr)); in nbr_free()
310 net_ipv6_nbr_data(nbr)->reachable = 0; in nbr_free()
311 net_ipv6_nbr_data(nbr)->reachable_timeout = 0; in nbr_free()
357 struct net_ipv6_nbr_data *data; in ipv6_ns_reply_timeout()
372 data = net_ipv6_nbr_data(nbr); in ipv6_ns_reply_timeout()
428 net_ipaddr_copy(&net_ipv6_nbr_data(nbr)->addr, addr); in nbr_init()
430 net_ipv6_nbr_data(nbr)->is_router = is_router; in nbr_init()
431 net_ipv6_nbr_data(nbr)->pending = NULL; in nbr_init()
432 net_ipv6_nbr_data(nbr)->send_ns = 0; in nbr_init()
435 net_ipv6_nbr_data(nbr)->reachable = 0; in nbr_init()
436 net_ipv6_nbr_data(nbr)->reachable_timeout = 0; in nbr_init()
523 struct net_ipv6_nbr_data *data = NULL; in ipv6_nd_remove_old_stale_nbr()
534 data = net_ipv6_nbr_data(nbr); in ipv6_nd_remove_old_stale_nbr()
561 &net_ipv6_nbr_data(nbr)->addr); in ipv6_nd_remove_old_stale_nbr()
618 net_ipv6_nbr_data(nbr)->state != NET_IPV6_NBR_STATE_STATIC) { in net_ipv6_nbr_add()
631 } else if (net_ipv6_nbr_data(nbr)->state == in net_ipv6_nbr_add()
637 if (net_ipv6_nbr_data(nbr)->state == NET_IPV6_NBR_STATE_INCOMPLETE) { in net_ipv6_nbr_add()
704 return &net_ipv6_nbr_data(nbr)->addr; in net_ipv6_nbr_lookup_by_index()
953 nbr ? net_ipv6_nbr_state2str(net_ipv6_nbr_data(nbr)->state) : in net_ipv6_prepare_for_send()
971 if (net_ipv6_nbr_data(nbr)->state == NET_IPV6_NBR_STATE_STALE) { in net_ipv6_prepare_for_send()
1487 net_ipv6_nbr_data(nbr)->reachable = k_uptime_get(); in ipv6_nd_restart_reachable_timer()
1488 net_ipv6_nbr_data(nbr)->reachable_timeout = time; in ipv6_nd_restart_reachable_timer()
1502 struct net_ipv6_nbr_data *data = NULL; in ipv6_nd_reachable_timeout()
1516 data = net_ipv6_nbr_data(nbr); in ipv6_nd_reachable_timeout()
1620 nbr, net_ipv6_nbr_data(nbr), time); in net_ipv6_nbr_set_reachable_timer()
1636 if (nbr && net_ipv6_nbr_data(nbr)->state != NET_IPV6_NBR_STATE_INCOMPLETE && in net_ipv6_nbr_reachability_hint()
1637 net_ipv6_nbr_data(nbr)->state != NET_IPV6_NBR_STATE_STATIC) { in net_ipv6_nbr_reachability_hint()
1641 net_ipv6_nbr_data(nbr)->reachable = 0; in net_ipv6_nbr_reachability_hint()
1642 net_ipv6_nbr_data(nbr)->reachable_timeout = 0; in net_ipv6_nbr_reachability_hint()
1706 nbr->idx, nbr, net_ipv6_nbr_data(nbr)->state, in handle_na_neighbor()
1724 if (net_ipv6_nbr_data(nbr)->state == NET_IPV6_NBR_STATE_INCOMPLETE) { in handle_na_neighbor()
1740 net_ipv6_nbr_data(nbr)->ns_count = 0U; in handle_na_neighbor()
1743 net_ipv6_nbr_data(nbr)->reachable = 0; in handle_na_neighbor()
1744 net_ipv6_nbr_data(nbr)->reachable_timeout = 0; in handle_na_neighbor()
1752 net_ipv6_nbr_data(nbr)->is_router = in handle_na_neighbor()
1762 if (net_ipv6_nbr_data(nbr)->state == in handle_na_neighbor()
1787 net_ipv6_nbr_data(nbr)->reachable = 0; in handle_na_neighbor()
1788 net_ipv6_nbr_data(nbr)->reachable_timeout = 0; in handle_na_neighbor()
1800 if (net_ipv6_nbr_data(nbr)->is_router && in handle_na_neighbor()
1808 net_ipv6_nbr_data(nbr)->is_router = in handle_na_neighbor()
1813 pending = net_ipv6_nbr_data(nbr)->pending; in handle_na_neighbor()
1819 nbr_clear_ns_pending(net_ipv6_nbr_data(nbr)); in handle_na_neighbor()
1821 net_ipv6_nbr_data(nbr)->pending = NULL; in handle_na_neighbor()
2049 if (!net_ipv6_nbr_data(nbr)->pending) { in net_ipv6_send_ns()
2050 net_ipv6_nbr_data(nbr)->pending = net_pkt_ref(pending); in net_ipv6_send_ns()
2054 net_ipv6_nbr_data(nbr)->pending, pending, pkt); in net_ipv6_send_ns()
2061 net_ipv6_nbr_data(nbr)->send_ns = k_uptime_get(); in net_ipv6_send_ns()
2077 nbr_clear_ns_pending(net_ipv6_nbr_data(nbr)); in net_ipv6_send_ns()
2731 net_ipv6_nbr_data(nbr)->is_router = true; in handle_ra_input()
2744 if (nbr && net_ipv6_nbr_data(nbr)->pending) { in handle_ra_input()
2746 net_ipv6_nbr_data(nbr)->pending, in handle_ra_input()
2747 net_sprint_ipv6_addr(&NET_IPV6_HDR(net_ipv6_nbr_data(nbr)->pending)->dst)); in handle_ra_input()
2749 if (net_send_data(net_ipv6_nbr_data(nbr)->pending) < 0) { in handle_ra_input()
2750 net_pkt_unref(net_ipv6_nbr_data(nbr)->pending); in handle_ra_input()
2753 nbr_clear_ns_pending(net_ipv6_nbr_data(nbr)); in handle_ra_input()