Lines Matching refs:d6o

102 	const dhcpv6_option_t *d6o;  in server_unicast_option()  local
105 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_UNICAST, &olen); in server_unicast_option()
106 olen -= sizeof (*d6o); in server_unicast_option()
108 if (d6o == NULL) { in server_unicast_option()
117 (void) memcpy(&addr, d6o + 1, olen); in server_unicast_option()
250 const dhcpv6_option_t *d6o; in dhcp_requesting() local
254 d6o = dhcpv6_pkt_option(offer, NULL, DHCPV6_OPT_STATUS_CODE, in dhcp_requesting()
256 (void) dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen); in dhcp_requesting()
364 const dhcpv6_option_t *d6o, *d6so; in compute_points_v6() local
385 d6o = dhcpv6_pkt_option(pkt, NULL, DHCPV6_OPT_STATUS_CODE, &olen); in compute_points_v6()
386 if (dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen) == in compute_points_v6()
397 d6o = NULL; in compute_points_v6()
398 while ((d6o = dhcpv6_pkt_option(pkt, d6o, DHCPV6_OPT_IA_NA, in compute_points_v6()
413 (const char *)d6o + sizeof (dhcpv6_ia_na_t), in compute_points_v6()
439 d6o = dhcpv6_pkt_option(pkt, NULL, DHCPV6_OPT_PREFERENCE, &olen); in compute_points_v6()
440 if (d6o != NULL && olen == sizeof (*d6o) + 1) { in compute_points_v6()
441 int pref = *(const uchar_t *)(d6o + 1); in compute_points_v6()
698 const dhcpv6_option_t *d6o; in accept_v6_message() local
718 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_CLIENTID, &olen); in accept_v6_message()
719 olen -= sizeof (*d6o); in accept_v6_message()
720 if (d6o == NULL || olen != dsmp->dsm_cidlen || in accept_v6_message()
721 memcmp(d6o + 1, dsmp->dsm_cid, olen) != 0) { in accept_v6_message()
724 pname, dsmp->dsm_name, d6o == NULL ? "no" : "wrong"); in accept_v6_message()
740 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_SERVERID, &olen); in accept_v6_message()
741 if (d6o == NULL) { in accept_v6_message()
751 olen -= sizeof (*d6o); in accept_v6_message()
753 memcmp(d6o + 1, dsmp->dsm_serverid, olen) != 0) { in accept_v6_message()
792 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_PREFERENCE, in accept_v6_message()
794 if (d6o != NULL && olen == sizeof (*d6o) + 1 && in accept_v6_message()
795 *(const uchar_t *)(d6o + 1) == 255) { in accept_v6_message()
832 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_STATUS_CODE, in accept_v6_message()
834 status = dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen); in accept_v6_message()
905 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_STATUS_CODE, in accept_v6_message()
907 if (dhcpv6_status_code(d6o, olen, &estr, &msg, in accept_v6_message()
936 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_STATUS_CODE, in accept_v6_message()
938 if (dhcpv6_status_code(d6o, olen, &estr, &msg, in accept_v6_message()