Lines Matching refs:olen
277 uint8_t otype, olen; in get_dhcpv4_option() local
288 olen = *start++; in get_dhcpv4_option()
289 if (otype == type && olen > 0) { in get_dhcpv4_option()
291 *opt_len = olen; in get_dhcpv4_option()
294 start += olen; in get_dhcpv4_option()
910 uint_t olen; in get_dhcpv6_option() local
916 olen = ntohs(d6o.d6o_len) + sizeof (d6o); in get_dhcpv6_option()
917 if (olen > buflen) in get_dhcpv6_option()
921 bp += olen; in get_dhcpv6_option()
922 buflen -= olen; in get_dhcpv6_option()
926 *retlenp = olen; in get_dhcpv6_option()
940 uint_t olen; in get_dhcpv6_status() local
944 DHCPV6_OPT_STATUS_CODE, &olen); in get_dhcpv6_status()
951 if ((uchar_t *)d6o + olen > end) in get_dhcpv6_status()
954 olen -= sizeof (*d6o); in get_dhcpv6_status()
955 if (olen < sizeof (s)) in get_dhcpv6_status()
971 uint_t olen; in get_dhcpv6_addrs() local
975 d6o, DHCPV6_OPT_IA_NA, &olen)) != NULL) { in get_dhcpv6_addrs()
982 if (olen < sizeof (dhcpv6_ia_na_t) || in get_dhcpv6_addrs()
983 (uchar_t *)d6o + olen > end) in get_dhcpv6_addrs()
987 olen -= sizeof (dhcpv6_ia_na_t); in get_dhcpv6_addrs()
989 while ((d6so = get_dhcpv6_option(obase, olen, d6so, in get_dhcpv6_addrs()
1057 uint_t olen, rawcidlen; in create_dhcpv6_cid() local
1060 DHCPV6_OPT_CLIENTID, &olen); in create_dhcpv6_cid()
1061 if (d6o == NULL || (uchar_t *)d6o + olen > end) in create_dhcpv6_cid()
1064 rawcidlen = olen - sizeof (*d6o); in create_dhcpv6_cid()