Lines Matching refs:d6o

103 	const dhcpv6_option_t *d6o;  in server_unicast_option()  local
106 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_UNICAST, &olen); in server_unicast_option()
107 olen -= sizeof (*d6o); in server_unicast_option()
109 if (d6o == NULL) { in server_unicast_option()
118 (void) memcpy(&addr, d6o + 1, olen); in server_unicast_option()
253 const dhcpv6_option_t *d6o; in dhcp_requesting() local
257 d6o = dhcpv6_pkt_option(offer, NULL, DHCPV6_OPT_STATUS_CODE, in dhcp_requesting()
259 (void) dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen); in dhcp_requesting()
368 const dhcpv6_option_t *d6o, *d6so; in compute_points_v6() local
389 d6o = dhcpv6_pkt_option(pkt, NULL, DHCPV6_OPT_STATUS_CODE, &olen); in compute_points_v6()
390 if (dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen) == in compute_points_v6()
401 d6o = NULL; in compute_points_v6()
402 while ((d6o = dhcpv6_pkt_option(pkt, d6o, DHCPV6_OPT_IA_NA, in compute_points_v6()
417 (const char *)d6o + sizeof (dhcpv6_ia_na_t), in compute_points_v6()
443 d6o = dhcpv6_pkt_option(pkt, NULL, DHCPV6_OPT_PREFERENCE, &olen); in compute_points_v6()
444 if (d6o != NULL && olen == sizeof (*d6o) + 1) { in compute_points_v6()
445 int pref = *(const uchar_t *)(d6o + 1); in compute_points_v6()
702 const dhcpv6_option_t *d6o; in accept_v6_message() local
722 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_CLIENTID, &olen); in accept_v6_message()
723 olen -= sizeof (*d6o); in accept_v6_message()
724 if (d6o == NULL || olen != dsmp->dsm_cidlen || in accept_v6_message()
725 memcmp(d6o + 1, dsmp->dsm_cid, olen) != 0) { in accept_v6_message()
728 pname, dsmp->dsm_name, d6o == NULL ? "no" : "wrong"); in accept_v6_message()
744 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_SERVERID, &olen); in accept_v6_message()
745 if (d6o == NULL) { in accept_v6_message()
755 olen -= sizeof (*d6o); in accept_v6_message()
757 memcmp(d6o + 1, dsmp->dsm_serverid, olen) != 0) { in accept_v6_message()
796 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_PREFERENCE, in accept_v6_message()
798 if (d6o != NULL && olen == sizeof (*d6o) + 1 && in accept_v6_message()
799 *(const uchar_t *)(d6o + 1) == 255) { in accept_v6_message()
836 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_STATUS_CODE, in accept_v6_message()
838 status = dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen); in accept_v6_message()
909 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_STATUS_CODE, in accept_v6_message()
911 if (dhcpv6_status_code(d6o, olen, &estr, &msg, in accept_v6_message()
940 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_STATUS_CODE, in accept_v6_message()
942 if (dhcpv6_status_code(d6o, olen, &estr, &msg, in accept_v6_message()