Lines Matching refs:nd_opt

1354 	struct nd_opt_hdr *             nd_opt;  in ethernet_nd6_frame_populate()  local
1389 nd_opt = (struct nd_opt_hdr *)(nd_ns + 1); in ethernet_nd6_frame_populate()
1390 nd_opt->nd_opt_type = ND_OPT_SOURCE_LINKADDR; in ethernet_nd6_frame_populate()
1391 nd_opt->nd_opt_len = SET_ND_OPT_LEN(LINKADDR_OPT_LEN); in ethernet_nd6_frame_populate()
1392 bcopy(sender_hw, (nd_opt + 1), sizeof(*sender_hw)); in ethernet_nd6_frame_populate()
1410 nd_opt = (struct nd_opt_hdr *)(nd_na + 1); in ethernet_nd6_frame_populate()
1411 nd_opt->nd_opt_type = ND_OPT_TARGET_LINKADDR; in ethernet_nd6_frame_populate()
1412 nd_opt->nd_opt_len = SET_ND_OPT_LEN(LINKADDR_OPT_LEN); in ethernet_nd6_frame_populate()
1413 bcopy(target_hw, (nd_opt + 1), sizeof(*target_hw)); in ethernet_nd6_frame_populate()
1427 nd_opt = (struct nd_opt_hdr *)(nd_rs + 1); in ethernet_nd6_frame_populate()
1428 nd_opt->nd_opt_type = ND_OPT_SOURCE_LINKADDR; in ethernet_nd6_frame_populate()
1429 nd_opt->nd_opt_len = SET_ND_OPT_LEN(LINKADDR_OPT_LEN); in ethernet_nd6_frame_populate()
1430 bcopy(sender_hw, (nd_opt + 1), sizeof(*sender_hw)); in ethernet_nd6_frame_populate()
2712 const struct nd_opt_hdr * nd_opt; in validate_mac_nat_nd6() local
2721 nd_opt = (const struct nd_opt_hdr *)(const void *)(ptr + nd_hdr_size); in validate_mac_nat_nd6()
2723 T_ASSERT_EQ(nd_opt->nd_opt_type, opt_type, NULL); in validate_mac_nat_nd6()
2725 T_ASSERT_EQ(GET_ND_OPT_LEN(nd_opt->nd_opt_len), LINKADDR_OPT_LEN, NULL); in validate_mac_nat_nd6()
2726 linkaddr = (const uint8_t *)(nd_opt + 1); in validate_mac_nat_nd6()