Lines Matching refs:na_hdr
1117 struct net_icmpv6_na_hdr *na_hdr; in net_ipv6_send_na() local
1139 na_hdr = (struct net_icmpv6_na_hdr *)net_pkt_get_data(pkt, &na_access); in net_ipv6_send_na()
1140 if (!na_hdr) { in net_ipv6_send_na()
1145 memset(na_hdr, 0, sizeof(struct net_icmpv6_na_hdr)); in net_ipv6_send_na()
1147 na_hdr->flags = flags; in net_ipv6_send_na()
1148 net_ipv6_addr_copy_raw(na_hdr->tgt, (uint8_t *)tgt); in net_ipv6_send_na()
1162 dbg_addr_sent_tgt("Neighbor Advertisement", src, dst, &na_hdr->tgt, in net_ipv6_send_na()
1653 struct net_icmpv6_na_hdr *na_hdr, in handle_na_neighbor() argument
1665 (struct in6_addr *)na_hdr->tgt); in handle_na_neighbor()
1669 net_sprint_ipv6_addr(&na_hdr->tgt)); in handle_na_neighbor()
1707 net_sprint_ipv6_addr(&na_hdr->tgt), in handle_na_neighbor()
1732 (struct in6_addr *)na_hdr->tgt); in handle_na_neighbor()
1738 if (na_hdr->flags & NET_ICMPV6_NA_FLAG_SOLICITED) { in handle_na_neighbor()
1753 (na_hdr->flags & NET_ICMPV6_NA_FLAG_ROUTER); in handle_na_neighbor()
1761 if (!(na_hdr->flags & NET_ICMPV6_NA_FLAG_OVERRIDE) && lladdr_changed) { in handle_na_neighbor()
1770 if (na_hdr->flags & NET_ICMPV6_NA_FLAG_OVERRIDE || in handle_na_neighbor()
1771 (!(na_hdr->flags & NET_ICMPV6_NA_FLAG_OVERRIDE) && in handle_na_neighbor()
1777 (struct in6_addr *)na_hdr->tgt); in handle_na_neighbor()
1783 if (na_hdr->flags & NET_ICMPV6_NA_FLAG_SOLICITED) { in handle_na_neighbor()
1801 !(na_hdr->flags & NET_ICMPV6_NA_FLAG_ROUTER)) { in handle_na_neighbor()
1809 (na_hdr->flags & NET_ICMPV6_NA_FLAG_ROUTER); in handle_na_neighbor()
1848 struct net_icmpv6_na_hdr *na_hdr; in handle_na_input() local
1855 na_hdr = (struct net_icmpv6_na_hdr *)net_pkt_get_data(pkt, &na_access); in handle_na_input()
1856 if (!na_hdr) { in handle_na_input()
1862 &ip_hdr->src, &ip_hdr->dst, &na_hdr->tgt, pkt); in handle_na_input()
1871 net_ipv6_is_addr_mcast((struct in6_addr *)na_hdr->tgt) || in handle_na_input()
1872 (na_hdr->flags & NET_ICMPV6_NA_FLAG_SOLICITED && in handle_na_input()
1920 (struct in6_addr *)na_hdr->tgt); in handle_na_input()
1925 net_sprint_ipv6_addr(&na_hdr->tgt)); in handle_na_input()
1930 (struct in6_addr *)na_hdr->tgt); in handle_na_input()
1937 if (!handle_na_neighbor(pkt, na_hdr, tllao_offset)) { in handle_na_input()