Lines Matching refs:name2

550 dns_name_fullcompare(const dns_name_t *name1, const dns_name_t *name2,
562 * 'name1' and 'name2', and also determine the hierarchical
572 REQUIRE(VALID_NAME(name2));
576 * Either name1 is absolute and name2 is absolute, or neither is.
579 (name2->attributes & DNS_NAMEATTR_ABSOLUTE));
581 if (name1 == name2) {
587 SETUP_OFFSETS(name2, offsets2, odata2);
591 l2 = name2->labels;
605 label2 = &name2->ndata[offsets2[l2]];
657 dns_name_compare(const dns_name_t *name1, const dns_name_t *name2) {
663 * 'name1' and 'name2'.
671 (void)dns_name_fullcompare(name1, name2, &order, &nlabels);
677 dns_name_equal(const dns_name_t *name1, const dns_name_t *name2) {
683 * Are 'name1' and 'name2' equal?
692 REQUIRE(VALID_NAME(name2));
694 * Either name1 is absolute and name2 is absolute, or neither is.
697 (name2->attributes & DNS_NAMEATTR_ABSOLUTE));
699 if (name1 == name2)
702 if (name1->length != name2->length)
707 if (l != name2->labels)
711 label2 = name2->ndata;
732 dns_name_caseequal(const dns_name_t *name1, const dns_name_t *name2) {
735 * Are 'name1' and 'name2' equal?
744 REQUIRE(VALID_NAME(name2));
746 * Either name1 is absolute and name2 is absolute, or neither is.
749 (name2->attributes & DNS_NAMEATTR_ABSOLUTE));
751 if (name1->length != name2->length)
754 if (memcmp(name1->ndata, name2->ndata, name1->length) != 0)
761 dns_name_rdatacompare(const dns_name_t *name1, const dns_name_t *name2) {
773 REQUIRE(VALID_NAME(name2));
774 REQUIRE(name2->labels > 0);
775 REQUIRE((name2->attributes & DNS_NAMEATTR_ABSOLUTE) != 0);
778 l2 = name2->labels;
783 label2 = name2->ndata;
819 dns_name_issubdomain(const dns_name_t *name1, const dns_name_t *name2) {
825 * Is 'name1' a subdomain of 'name2'?
833 namereln = dns_name_fullcompare(name1, name2, &order, &nlabels);