Lines Matching refs:nd_na
575 struct nd_neighbor_advert *nd_na; in nd6_na_input() local
601 nd_na = (struct nd_neighbor_advert *)((caddr_t)ip6 + off); in nd6_na_input()
603 IP6_EXTHDR_GET(nd_na, struct nd_neighbor_advert *, m, off, icmp6len); in nd6_na_input()
604 if (nd_na == NULL) { in nd6_na_input()
609 taddr6 = nd_na->nd_na_target; in nd6_na_input()
610 flags = nd_na->nd_na_flags_reserved; in nd6_na_input()
631 icmp6len -= sizeof(*nd_na); in nd6_na_input()
632 nd6_option_init(nd_na + 1, icmp6len, &ndopts); in nd6_na_input()
890 struct nd_neighbor_advert *nd_na; in nd6_na_output() local
899 maxlen = sizeof(*ip6) + sizeof(*nd_na); in nd6_na_output()
920 icmp6len = sizeof(*nd_na); in nd6_na_output()
951 nd_na = (struct nd_neighbor_advert *)(ip6 + 1); in nd6_na_output()
952 nd_na->nd_na_type = ND_NEIGHBOR_ADVERT; in nd6_na_output()
953 nd_na->nd_na_code = 0; in nd6_na_output()
954 nd_na->nd_na_target = *taddr6; in nd6_na_output()
955 in6_clearscope(&nd_na->nd_na_target); /* XXX */ in nd6_na_output()
988 struct nd_opt_hdr *nd_opt = (struct nd_opt_hdr *)(nd_na + 1); in nd6_na_output()
1004 nd_na->nd_na_flags_reserved = flags; in nd6_na_output()
1005 nd_na->nd_na_cksum = 0; in nd6_na_output()
1006 nd_na->nd_na_cksum = in nd6_na_output()