Lines Matching refs:min
79 ASN1_SIMPLE(IPAddressRange, min, ASN1_BIT_STRING),
230 if (!i2r_address(out, afi, 0x00, aor->u.addressRange->min))
333 addr_expand(addr_a, a->u.addressRange->min, length, 0x00);
344 addr_expand(addr_b, b->u.addressRange->min, length, 0x00);
379 static int range_should_be_prefix(const unsigned char *min,
386 for (i = 0; i < length && min[i] == max[i]; i++)
388 for (j = length - 1; j >= 0 && min[j] == 0x00 && max[j] == 0xFF; j--)
394 mask = min[i] ^ max[i];
405 if ((min[i] & mask) != 0 || (max[i] & mask) != mask)
450 unsigned char *min,
457 if ((prefixlen = range_should_be_prefix(min, max, length)) >= 0)
458 return make_addressPrefix(result, min, prefixlen);
466 if (aor->u.addressRange->min == NULL &&
467 (aor->u.addressRange->min = ASN1_BIT_STRING_new()) == NULL)
473 for (i = length; i > 0 && min[i - 1] == 0x00; --i)
475 if (!ASN1_BIT_STRING_set(aor->u.addressRange->min, min, i))
477 aor->u.addressRange->min->flags &= ~7;
478 aor->u.addressRange->min->flags |= ASN1_STRING_FLAG_BITS_LEFT;
480 unsigned char b = min[i - 1];
484 aor->u.addressRange->min->flags |= 8 - j;
640 unsigned char *min,
648 if (!make_addressRange(&aor, min, max, length))
657 * Extract min and max values from an IPAddressOrRange.
660 unsigned char *min,
664 OPENSSL_assert(aor != NULL && min != NULL && max != NULL);
667 addr_expand(min, aor->u.addressPrefix, length, 0x00);
671 addr_expand(min, aor->u.addressRange->min, length, 0x00);
682 unsigned char *min,
687 if (aor == NULL || min == NULL || max == NULL ||
692 extract_min_max(aor, min, max, afi_length);
914 unsigned char min[ADDR_RAW_BUF_LEN], max[ADDR_RAW_BUF_LEN];
988 if (a2i_ipadd(min, s) != length) {
1002 if (!v3_addr_add_prefix(addr, afi, safi, min, prefixlen)) {
1020 if (!v3_addr_add_range(addr, afi, safi, min, max)) {
1026 if (!v3_addr_add_prefix(addr, afi, safi, min, length * 8)) {