Lines Matching refs:olen
103 uint_t olen; 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()
110 } else if (olen != sizeof (dsmp->dsm_server)) { in server_unicast_option()
117 (void) memcpy(&addr, d6o + 1, olen); in server_unicast_option()
251 uint_t olen, msglen; in dhcp_requesting() local
255 &olen); in dhcp_requesting()
256 (void) dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen); in dhcp_requesting()
365 uint_t olen, solen; 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()
399 &olen)) != NULL) { in compute_points_v6()
414 olen - sizeof (dhcpv6_ia_na_t), NULL, 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()
699 uint_t olen; 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()
740 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_SERVERID, &olen); in accept_v6_message()
751 olen -= sizeof (*d6o); in accept_v6_message()
752 if (olen != dsmp->dsm_serveridlen || in accept_v6_message()
753 memcmp(d6o + 1, dsmp->dsm_serverid, olen) != 0) { in accept_v6_message()
771 DHCPV6_OPT_RAPID_COMMIT, &olen) == NULL) { in accept_v6_message()
793 &olen); in accept_v6_message()
794 if (d6o != NULL && olen == sizeof (*d6o) + 1 && in accept_v6_message()
833 &olen); in accept_v6_message()
834 status = dhcpv6_status_code(d6o, olen, &estr, &msg, &msglen); in accept_v6_message()
906 &olen); in accept_v6_message()
907 if (dhcpv6_status_code(d6o, olen, &estr, &msg, in accept_v6_message()
937 &olen); in accept_v6_message()
938 if (dhcpv6_status_code(d6o, olen, &estr, &msg, in accept_v6_message()