aboutsummaryrefslogtreecommitdiff
path: root/lib/dns/rdata/in_1/a6_38.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dns/rdata/in_1/a6_38.c')
-rw-r--r--lib/dns/rdata/in_1/a6_38.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/dns/rdata/in_1/a6_38.c b/lib/dns/rdata/in_1/a6_38.c
index b6ef68878e2f..05a21ade89d2 100644
--- a/lib/dns/rdata/in_1/a6_38.c
+++ b/lib/dns/rdata/in_1/a6_38.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004, 2007, 2009, 2014 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2007, 2009, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -37,8 +37,8 @@ fromtext_in_a6(ARGS_FROMTEXT) {
isc_buffer_t buffer;
isc_boolean_t ok;
- REQUIRE(type == 38);
- REQUIRE(rdclass == 1);
+ REQUIRE(type == dns_rdatatype_a6);
+ REQUIRE(rdclass == dns_rdataclass_in);
UNUSED(type);
UNUSED(rdclass);
@@ -107,8 +107,8 @@ totext_in_a6(ARGS_TOTEXT) {
dns_name_t prefix;
isc_boolean_t sub;
- REQUIRE(rdata->type == 38);
- REQUIRE(rdata->rdclass == 1);
+ REQUIRE(rdata->type == dns_rdatatype_a6);
+ REQUIRE(rdata->rdclass == dns_rdataclass_in);
REQUIRE(rdata->length != 0);
dns_rdata_toregion(rdata, &sr);
@@ -150,8 +150,8 @@ fromwire_in_a6(ARGS_FROMWIRE) {
unsigned char mask;
dns_name_t name;
- REQUIRE(type == 38);
- REQUIRE(rdclass == 1);
+ REQUIRE(type == dns_rdatatype_a6);
+ REQUIRE(rdclass == dns_rdataclass_in);
UNUSED(type);
UNUSED(rdclass);
@@ -199,8 +199,8 @@ towire_in_a6(ARGS_TOWIRE) {
unsigned char prefixlen;
unsigned char octets;
- REQUIRE(rdata->type == 38);
- REQUIRE(rdata->rdclass == 1);
+ REQUIRE(rdata->type == dns_rdatatype_a6);
+ REQUIRE(rdata->rdclass == dns_rdataclass_in);
REQUIRE(rdata->length != 0);
dns_compress_setmethods(cctx, DNS_COMPRESS_NONE);
@@ -232,8 +232,8 @@ compare_in_a6(ARGS_COMPARE) {
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
- REQUIRE(rdata1->type == 38);
- REQUIRE(rdata1->rdclass == 1);
+ REQUIRE(rdata1->type == dns_rdatatype_a6);
+ REQUIRE(rdata1->rdclass == dns_rdataclass_in);
REQUIRE(rdata1->length != 0);
REQUIRE(rdata2->length != 0);
@@ -283,8 +283,8 @@ fromstruct_in_a6(ARGS_FROMSTRUCT) {
isc_uint8_t first;
isc_uint8_t mask;
- REQUIRE(type == 38);
- REQUIRE(rdclass == 1);
+ REQUIRE(type == dns_rdatatype_a6);
+ REQUIRE(rdclass == dns_rdataclass_in);
REQUIRE(source != NULL);
REQUIRE(a6->common.rdtype == type);
REQUIRE(a6->common.rdclass == rdclass);
@@ -326,8 +326,8 @@ tostruct_in_a6(ARGS_TOSTRUCT) {
dns_name_t name;
isc_region_t r;
- REQUIRE(rdata->type == 38);
- REQUIRE(rdata->rdclass == 1);
+ REQUIRE(rdata->type == dns_rdatatype_a6);
+ REQUIRE(rdata->rdclass == dns_rdataclass_in);
REQUIRE(target != NULL);
REQUIRE(rdata->length != 0);
@@ -369,8 +369,8 @@ freestruct_in_a6(ARGS_FREESTRUCT) {
dns_rdata_in_a6_t *a6 = source;
REQUIRE(source != NULL);
- REQUIRE(a6->common.rdclass == 1);
- REQUIRE(a6->common.rdtype == 38);
+ REQUIRE(a6->common.rdclass == dns_rdataclass_in);
+ REQUIRE(a6->common.rdtype == dns_rdatatype_a6);
if (a6->mctx == NULL)
return;
@@ -382,8 +382,8 @@ freestruct_in_a6(ARGS_FREESTRUCT) {
static inline isc_result_t
additionaldata_in_a6(ARGS_ADDLDATA) {
- REQUIRE(rdata->type == 38);
- REQUIRE(rdata->rdclass == 1);
+ REQUIRE(rdata->type == dns_rdatatype_a6);
+ REQUIRE(rdata->rdclass == dns_rdataclass_in);
UNUSED(rdata);
UNUSED(add);
@@ -399,8 +399,8 @@ digest_in_a6(ARGS_DIGEST) {
isc_result_t result;
dns_name_t name;
- REQUIRE(rdata->type == 38);
- REQUIRE(rdata->rdclass == 1);
+ REQUIRE(rdata->type == dns_rdatatype_a6);
+ REQUIRE(rdata->rdclass == dns_rdataclass_in);
dns_rdata_toregion(rdata, &r1);
r2 = r1;
@@ -423,8 +423,8 @@ digest_in_a6(ARGS_DIGEST) {
static inline isc_boolean_t
checkowner_in_a6(ARGS_CHECKOWNER) {
- REQUIRE(type == 38);
- REQUIRE(rdclass == 1);
+ REQUIRE(type == dns_rdatatype_a6);
+ REQUIRE(rdclass == dns_rdataclass_in);
UNUSED(type);
UNUSED(rdclass);
@@ -438,8 +438,8 @@ checknames_in_a6(ARGS_CHECKNAMES) {
dns_name_t name;
unsigned int prefixlen;
- REQUIRE(rdata->type == 38);
- REQUIRE(rdata->rdclass == 1);
+ REQUIRE(rdata->type == dns_rdatatype_a6);
+ REQUIRE(rdata->rdclass == dns_rdataclass_in);
UNUSED(owner);