Lines Matching refs:nd_opt

803 	struct nd_opt_hdr *             nd_opt;  in ethernet_nd6_frame_populate()  local
838 nd_opt = (struct nd_opt_hdr *)(nd_ns + 1); in ethernet_nd6_frame_populate()
839 nd_opt->nd_opt_type = ND_OPT_SOURCE_LINKADDR; in ethernet_nd6_frame_populate()
840 nd_opt->nd_opt_len = SET_ND_OPT_LEN(LINKADDR_OPT_LEN); in ethernet_nd6_frame_populate()
841 bcopy(sender_hw, (nd_opt + 1), sizeof(*sender_hw)); in ethernet_nd6_frame_populate()
859 nd_opt = (struct nd_opt_hdr *)(nd_na + 1); in ethernet_nd6_frame_populate()
860 nd_opt->nd_opt_type = ND_OPT_TARGET_LINKADDR; in ethernet_nd6_frame_populate()
861 nd_opt->nd_opt_len = SET_ND_OPT_LEN(LINKADDR_OPT_LEN); in ethernet_nd6_frame_populate()
862 bcopy(target_hw, (nd_opt + 1), sizeof(*target_hw)); in ethernet_nd6_frame_populate()
876 nd_opt = (struct nd_opt_hdr *)(nd_rs + 1); in ethernet_nd6_frame_populate()
877 nd_opt->nd_opt_type = ND_OPT_SOURCE_LINKADDR; in ethernet_nd6_frame_populate()
878 nd_opt->nd_opt_len = SET_ND_OPT_LEN(LINKADDR_OPT_LEN); in ethernet_nd6_frame_populate()
879 bcopy(sender_hw, (nd_opt + 1), sizeof(*sender_hw)); in ethernet_nd6_frame_populate()
2139 const struct nd_opt_hdr * nd_opt; in validate_mac_nat_nd6() local
2148 nd_opt = (const struct nd_opt_hdr *)(const void *)(ptr + nd_hdr_size); in validate_mac_nat_nd6()
2150 T_ASSERT_EQ(nd_opt->nd_opt_type, opt_type, in validate_mac_nat_nd6()
2152 nd_opt->nd_opt_type, opt_type); in validate_mac_nat_nd6()
2154 T_ASSERT_EQ(GET_ND_OPT_LEN(nd_opt->nd_opt_len), LINKADDR_OPT_LEN, NULL); in validate_mac_nat_nd6()
2155 linkaddr = (const uint8_t *)(nd_opt + 1); in validate_mac_nat_nd6()