diff options
Diffstat (limited to 'lib/dns/rdata/in_1/dhcid_49.c')
-rw-r--r-- | lib/dns/rdata/in_1/dhcid_49.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/dns/rdata/in_1/dhcid_49.c b/lib/dns/rdata/in_1/dhcid_49.c index 7575da0d1930..261e41ea8acb 100644 --- a/lib/dns/rdata/in_1/dhcid_49.c +++ b/lib/dns/rdata/in_1/dhcid_49.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2007, 2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2006, 2007, 2009, 2011, 2012, 2015 Internet Systems Consortium, Inc. ("ISC") * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -26,8 +26,8 @@ static inline isc_result_t fromtext_in_dhcid(ARGS_FROMTEXT) { - REQUIRE(type == 49); - REQUIRE(rdclass == 1); + REQUIRE(type == dns_rdatatype_dhcid); + REQUIRE(rdclass == dns_rdataclass_in); UNUSED(type); UNUSED(rdclass); @@ -44,8 +44,8 @@ totext_in_dhcid(ARGS_TOTEXT) { char buf[sizeof(" ; 64000 255 64000")]; size_t n; - REQUIRE(rdata->type == 49); - REQUIRE(rdata->rdclass == 1); + REQUIRE(rdata->type == dns_rdatatype_dhcid); + REQUIRE(rdata->rdclass == dns_rdataclass_in); REQUIRE(rdata->length != 0); dns_rdata_toregion(rdata, &sr); @@ -74,8 +74,8 @@ static inline isc_result_t fromwire_in_dhcid(ARGS_FROMWIRE) { isc_region_t sr; - REQUIRE(type == 49); - REQUIRE(rdclass == 1); + REQUIRE(type == dns_rdatatype_dhcid); + REQUIRE(rdclass == dns_rdataclass_in); UNUSED(type); UNUSED(rdclass); @@ -94,8 +94,8 @@ static inline isc_result_t towire_in_dhcid(ARGS_TOWIRE) { isc_region_t sr; - REQUIRE(rdata->type == 49); - REQUIRE(rdata->rdclass == 1); + REQUIRE(rdata->type == dns_rdatatype_dhcid); + REQUIRE(rdata->rdclass == dns_rdataclass_in); REQUIRE(rdata->length != 0); UNUSED(cctx); @@ -111,8 +111,8 @@ compare_in_dhcid(ARGS_COMPARE) { REQUIRE(rdata1->type == rdata2->type); REQUIRE(rdata1->rdclass == rdata2->rdclass); - REQUIRE(rdata1->type == 49); - REQUIRE(rdata1->rdclass == 1); + REQUIRE(rdata1->type == dns_rdatatype_dhcid); + REQUIRE(rdata1->rdclass == dns_rdataclass_in); REQUIRE(rdata1->length != 0); REQUIRE(rdata2->length != 0); @@ -125,8 +125,8 @@ static inline isc_result_t fromstruct_in_dhcid(ARGS_FROMSTRUCT) { dns_rdata_in_dhcid_t *dhcid = source; - REQUIRE(type == 49); - REQUIRE(rdclass == 1); + REQUIRE(type == dns_rdatatype_dhcid); + REQUIRE(rdclass == dns_rdataclass_in); REQUIRE(source != NULL); REQUIRE(dhcid->common.rdtype == type); REQUIRE(dhcid->common.rdclass == rdclass); @@ -143,8 +143,8 @@ tostruct_in_dhcid(ARGS_TOSTRUCT) { dns_rdata_in_dhcid_t *dhcid = target; isc_region_t region; - REQUIRE(rdata->type == 49); - REQUIRE(rdata->rdclass == 1); + REQUIRE(rdata->type == dns_rdatatype_dhcid); + REQUIRE(rdata->rdclass == dns_rdataclass_in); REQUIRE(target != NULL); REQUIRE(rdata->length != 0); @@ -167,8 +167,8 @@ freestruct_in_dhcid(ARGS_FREESTRUCT) { dns_rdata_in_dhcid_t *dhcid = source; REQUIRE(dhcid != NULL); - REQUIRE(dhcid->common.rdtype == 49); - REQUIRE(dhcid->common.rdclass == 1); + REQUIRE(dhcid->common.rdtype == dns_rdatatype_dhcid); + REQUIRE(dhcid->common.rdclass == dns_rdataclass_in); if (dhcid->mctx == NULL) return; @@ -180,8 +180,8 @@ freestruct_in_dhcid(ARGS_FREESTRUCT) { static inline isc_result_t additionaldata_in_dhcid(ARGS_ADDLDATA) { - REQUIRE(rdata->type == 49); - REQUIRE(rdata->rdclass == 1); + REQUIRE(rdata->type == dns_rdatatype_dhcid); + REQUIRE(rdata->rdclass == dns_rdataclass_in); UNUSED(rdata); UNUSED(add); @@ -194,8 +194,8 @@ static inline isc_result_t digest_in_dhcid(ARGS_DIGEST) { isc_region_t r; - REQUIRE(rdata->type == 49); - REQUIRE(rdata->rdclass == 1); + REQUIRE(rdata->type == dns_rdatatype_dhcid); + REQUIRE(rdata->rdclass == dns_rdataclass_in); dns_rdata_toregion(rdata, &r); @@ -205,8 +205,8 @@ digest_in_dhcid(ARGS_DIGEST) { static inline isc_boolean_t checkowner_in_dhcid(ARGS_CHECKOWNER) { - REQUIRE(type == 49); - REQUIRE(rdclass == 1); + REQUIRE(type == dns_rdatatype_dhcid); + REQUIRE(rdclass == dns_rdataclass_in); UNUSED(name); UNUSED(type); @@ -219,8 +219,8 @@ checkowner_in_dhcid(ARGS_CHECKOWNER) { static inline isc_boolean_t checknames_in_dhcid(ARGS_CHECKNAMES) { - REQUIRE(rdata->type == 49); - REQUIRE(rdata->rdclass == 1); + REQUIRE(rdata->type == dns_rdatatype_dhcid); + REQUIRE(rdata->rdclass == dns_rdataclass_in); UNUSED(rdata); UNUSED(owner); |