diff options
Diffstat (limited to 'lib/dns/rdata/generic/ns_2.c')
-rw-r--r-- | lib/dns/rdata/generic/ns_2.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/dns/rdata/generic/ns_2.c b/lib/dns/rdata/generic/ns_2.c index 5db81e7cb390..d7e095b09bf2 100644 --- a/lib/dns/rdata/generic/ns_2.c +++ b/lib/dns/rdata/generic/ns_2.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004, 2007, 2009, 2015 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1998-2001 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -31,7 +31,7 @@ fromtext_ns(ARGS_FROMTEXT) { isc_buffer_t buffer; isc_boolean_t ok; - REQUIRE(type == 2); + REQUIRE(type == dns_rdatatype_ns); UNUSED(type); UNUSED(rdclass); @@ -61,7 +61,7 @@ totext_ns(ARGS_TOTEXT) { dns_name_t prefix; isc_boolean_t sub; - REQUIRE(rdata->type == 2); + REQUIRE(rdata->type == dns_rdatatype_ns); REQUIRE(rdata->length != 0); dns_name_init(&name, NULL); @@ -79,7 +79,7 @@ static inline isc_result_t fromwire_ns(ARGS_FROMWIRE) { dns_name_t name; - REQUIRE(type == 2); + REQUIRE(type == dns_rdatatype_ns); UNUSED(type); UNUSED(rdclass); @@ -96,7 +96,7 @@ towire_ns(ARGS_TOWIRE) { dns_offsets_t offsets; isc_region_t region; - REQUIRE(rdata->type == 2); + REQUIRE(rdata->type == dns_rdatatype_ns); REQUIRE(rdata->length != 0); dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); @@ -117,7 +117,7 @@ compare_ns(ARGS_COMPARE) { REQUIRE(rdata1->type == rdata2->type); REQUIRE(rdata1->rdclass == rdata2->rdclass); - REQUIRE(rdata1->type == 2); + REQUIRE(rdata1->type == dns_rdatatype_ns); REQUIRE(rdata1->length != 0); REQUIRE(rdata2->length != 0); @@ -138,7 +138,7 @@ fromstruct_ns(ARGS_FROMSTRUCT) { dns_rdata_ns_t *ns = source; isc_region_t region; - REQUIRE(type == 2); + REQUIRE(type == dns_rdatatype_ns); REQUIRE(source != NULL); REQUIRE(ns->common.rdtype == type); REQUIRE(ns->common.rdclass == rdclass); @@ -156,7 +156,7 @@ tostruct_ns(ARGS_TOSTRUCT) { dns_rdata_ns_t *ns = target; dns_name_t name; - REQUIRE(rdata->type == 2); + REQUIRE(rdata->type == dns_rdatatype_ns); REQUIRE(target != NULL); REQUIRE(rdata->length != 0); @@ -192,7 +192,7 @@ additionaldata_ns(ARGS_ADDLDATA) { dns_offsets_t offsets; isc_region_t region; - REQUIRE(rdata->type == 2); + REQUIRE(rdata->type == dns_rdatatype_ns); dns_name_init(&name, offsets); dns_rdata_toregion(rdata, ®ion); @@ -206,7 +206,7 @@ digest_ns(ARGS_DIGEST) { isc_region_t r; dns_name_t name; - REQUIRE(rdata->type == 2); + REQUIRE(rdata->type == dns_rdatatype_ns); dns_rdata_toregion(rdata, &r); dns_name_init(&name, NULL); @@ -218,7 +218,7 @@ digest_ns(ARGS_DIGEST) { static inline isc_boolean_t checkowner_ns(ARGS_CHECKOWNER) { - REQUIRE(type == 2); + REQUIRE(type == dns_rdatatype_ns); UNUSED(name); UNUSED(type); @@ -233,7 +233,7 @@ checknames_ns(ARGS_CHECKNAMES) { isc_region_t region; dns_name_t name; - REQUIRE(rdata->type == 2); + REQUIRE(rdata->type == dns_rdatatype_ns); UNUSED(owner); |