isdn_20.c revision 503ffdad3bc62e6458e4b60e329aa448ce1803a1
615eff12e0e3565c52758292e10080a25d872941William King/*
ca41b452ede6feaa9d8739ec3cae19389a7b0d03Bob Halley * Copyright (C) 2004, 2005, 2007, 2009, 2013-2015 Internet Systems Consortium, Inc. ("ISC")
615eff12e0e3565c52758292e10080a25d872941William King * Copyright (C) 1999-2002 Internet Software Consortium.
615eff12e0e3565c52758292e10080a25d872941William King *
615eff12e0e3565c52758292e10080a25d872941William King * Permission to use, copy, modify, and/or distribute this software for any
615eff12e0e3565c52758292e10080a25d872941William King * purpose with or without fee is hereby granted, provided that the above
615eff12e0e3565c52758292e10080a25d872941William King * copyright notice and this permission notice appear in all copies.
615eff12e0e3565c52758292e10080a25d872941William King *
615eff12e0e3565c52758292e10080a25d872941William King * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
615eff12e0e3565c52758292e10080a25d872941William King * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
615eff12e0e3565c52758292e10080a25d872941William King * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
615eff12e0e3565c52758292e10080a25d872941William King * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
615eff12e0e3565c52758292e10080a25d872941William King * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
615eff12e0e3565c52758292e10080a25d872941William King * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
615eff12e0e3565c52758292e10080a25d872941William King * PERFORMANCE OF THIS SOFTWARE.
615eff12e0e3565c52758292e10080a25d872941William King */
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King/* $Id: isdn_20.c,v 1.40 2009/12/04 22:06:37 tbox Exp $ */
615eff12e0e3565c52758292e10080a25d872941William King
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence/* Reviewed: Wed Mar 15 16:53:11 PST 2000 by bwelling */
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence/* RFC1183 */
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King#ifndef RDATA_GENERIC_ISDN_20_C
e5966f9b9a13fc83afaf9b74ac1f7eea6a647817William King#define RDATA_GENERIC_ISDN_20_C
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King#define RRTYPE_ISDN_ATTRIBUTES (0)
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William Kingstatic inline isc_result_t
615eff12e0e3565c52758292e10080a25d872941William Kingfromtext_isdn(ARGS_FROMTEXT) {
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence isc_token_t token;
615eff12e0e3565c52758292e10080a25d872941William King
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence REQUIRE(type == dns_rdatatype_isdn);
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
fd9f6afdff9faf55411dfd5f828529601cab0511Andreas Gustafsson UNUSED(type);
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(rdclass);
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(origin);
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(options);
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(callbacks);
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King /* ISDN-address */
615eff12e0e3565c52758292e10080a25d872941William King RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_qstring,
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence ISC_FALSE));
615eff12e0e3565c52758292e10080a25d872941William King RETTOK(txt_fromtext(&token.value.as_textregion, target));
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King /* sa: optional */
615eff12e0e3565c52758292e10080a25d872941William King RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_qstring,
615eff12e0e3565c52758292e10080a25d872941William King ISC_TRUE));
615eff12e0e3565c52758292e10080a25d872941William King if (token.type != isc_tokentype_string &&
615eff12e0e3565c52758292e10080a25d872941William King token.type != isc_tokentype_qstring) {
615eff12e0e3565c52758292e10080a25d872941William King isc_lex_ungettoken(lexer, &token);
615eff12e0e3565c52758292e10080a25d872941William King return (ISC_R_SUCCESS);
615eff12e0e3565c52758292e10080a25d872941William King }
615eff12e0e3565c52758292e10080a25d872941William King RETTOK(txt_fromtext(&token.value.as_textregion, target));
615eff12e0e3565c52758292e10080a25d872941William King return (ISC_R_SUCCESS);
615eff12e0e3565c52758292e10080a25d872941William King}
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William Kingstatic inline isc_result_t
615eff12e0e3565c52758292e10080a25d872941William Kingtotext_isdn(ARGS_TOTEXT) {
615eff12e0e3565c52758292e10080a25d872941William King isc_region_t region;
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata->type == dns_rdatatype_isdn);
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata->length != 0);
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(tctx);
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King dns_rdata_toregion(rdata, &region);
615eff12e0e3565c52758292e10080a25d872941William King RETERR(txt_totext(&region, ISC_TRUE, target));
615eff12e0e3565c52758292e10080a25d872941William King if (region.length == 0)
615eff12e0e3565c52758292e10080a25d872941William King return (ISC_R_SUCCESS);
615eff12e0e3565c52758292e10080a25d872941William King RETERR(str_totext(" ", target));
615eff12e0e3565c52758292e10080a25d872941William King return (txt_totext(&region, ISC_TRUE, target));
615eff12e0e3565c52758292e10080a25d872941William King}
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William Kingstatic inline isc_result_t
615eff12e0e3565c52758292e10080a25d872941William Kingfromwire_isdn(ARGS_FROMWIRE) {
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(type == dns_rdatatype_isdn);
4124057bf54f0fc75b06b35487130bbd9249ee7fBrian Wellington
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(type);
4124057bf54f0fc75b06b35487130bbd9249ee7fBrian Wellington UNUSED(dctx);
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(rdclass);
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(options);
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King RETERR(txt_fromwire(source, target));
615eff12e0e3565c52758292e10080a25d872941William King if (buffer_empty(source))
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence return (ISC_R_SUCCESS);
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence return (txt_fromwire(source, target));
615eff12e0e3565c52758292e10080a25d872941William King}
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence
615eff12e0e3565c52758292e10080a25d872941William Kingstatic inline isc_result_t
81ab85fd39c3f6c781ecac725d830364a311479dBrian Wellingtontowire_isdn(ARGS_TOWIRE) {
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(cctx);
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata->type == dns_rdatatype_isdn);
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata->length != 0);
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King return (mem_tobuffer(target, rdata->data, rdata->length));
615eff12e0e3565c52758292e10080a25d872941William King}
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William Kingstatic inline int
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrencecompare_isdn(ARGS_COMPARE) {
81ab85fd39c3f6c781ecac725d830364a311479dBrian Wellington isc_region_t r1;
615eff12e0e3565c52758292e10080a25d872941William King isc_region_t r2;
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata1->type == rdata2->type);
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata1->rdclass == rdata2->rdclass);
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata1->type == dns_rdatatype_isdn);
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata1->length != 0);
615eff12e0e3565c52758292e10080a25d872941William King REQUIRE(rdata2->length != 0);
615eff12e0e3565c52758292e10080a25d872941William King
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington dns_rdata_toregion(rdata1, &r1);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington dns_rdata_toregion(rdata2, &r2);
4124057bf54f0fc75b06b35487130bbd9249ee7fBrian Wellington return (isc_region_compare(&r1, &r2));
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington}
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellington
4124057bf54f0fc75b06b35487130bbd9249ee7fBrian Wellingtonstatic inline isc_result_t
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtonfromstruct_isdn(ARGS_FROMSTRUCT) {
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington dns_rdata_isdn_t *isdn = source;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(type == dns_rdatatype_isdn);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(source != NULL);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(isdn->common.rdtype == type);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(isdn->common.rdclass == rdclass);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington UNUSED(type);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington UNUSED(rdclass);
fd9f6afdff9faf55411dfd5f828529601cab0511Andreas Gustafsson
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington RETERR(uint8_tobuffer(isdn->isdn_len, target));
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington RETERR(mem_tobuffer(target, isdn->isdn, isdn->isdn_len));
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington if (isdn->subaddress == NULL)
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington return (ISC_R_SUCCESS);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington RETERR(uint8_tobuffer(isdn->subaddress_len, target));
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington return (mem_tobuffer(target, isdn->subaddress, isdn->subaddress_len));
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington}
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtonstatic inline isc_result_t
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtontostruct_isdn(ARGS_TOSTRUCT) {
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington dns_rdata_isdn_t *isdn = target;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isc_region_t r;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(rdata->type == dns_rdatatype_isdn);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(target != NULL);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(rdata->length != 0);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->common.rdclass = rdata->rdclass;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->common.rdtype = rdata->type;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington ISC_LINK_INIT(&isdn->common, link);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington dns_rdata_toregion(rdata, &r);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->isdn_len = uint8_fromregion(&r);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isc_region_consume(&r, 1);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->isdn = mem_maybedup(mctx, r.base, isdn->isdn_len);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington if (isdn->isdn == NULL)
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington return (ISC_R_NOMEMORY);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isc_region_consume(&r, isdn->isdn_len);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington if (r.length == 0) {
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->subaddress_len = 0;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->subaddress = NULL;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington } else {
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->subaddress_len = uint8_fromregion(&r);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isc_region_consume(&r, 1);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->subaddress = mem_maybedup(mctx, r.base,
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->subaddress_len);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington if (isdn->subaddress == NULL)
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington goto cleanup;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington }
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->mctx = mctx;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington return (ISC_R_SUCCESS);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington cleanup:
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington if (mctx != NULL && isdn->isdn != NULL)
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isc_mem_free(mctx, isdn->isdn);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington return (ISC_R_NOMEMORY);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington}
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtonstatic inline void
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtonfreestruct_isdn(ARGS_FREESTRUCT) {
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington dns_rdata_isdn_t *isdn = source;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(source != NULL);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington if (isdn->mctx == NULL)
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington return;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington if (isdn->isdn != NULL)
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isc_mem_free(isdn->mctx, isdn->isdn);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington if (isdn->subaddress != NULL)
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isc_mem_free(isdn->mctx, isdn->subaddress);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington isdn->mctx = NULL;
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington}
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtonstatic inline isc_result_t
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtonadditionaldata_isdn(ARGS_ADDLDATA) {
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(rdata->type == dns_rdatatype_isdn);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence UNUSED(rdata);
81ab85fd39c3f6c781ecac725d830364a311479dBrian Wellington UNUSED(add);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington UNUSED(arg);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington return (ISC_R_SUCCESS);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington}
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtonstatic inline isc_result_t
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellingtondigest_isdn(ARGS_DIGEST) {
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrence isc_region_t r;
81ab85fd39c3f6c781ecac725d830364a311479dBrian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(rdata->type == dns_rdatatype_isdn);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington dns_rdata_toregion(rdata, &r);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington return ((digest)(arg, &r));
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington}
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrencestatic inline isc_boolean_t
6e49e91bd08778d7eae45a2229dcf41ed97cc636David Lawrencecheckowner_isdn(ARGS_CHECKOWNER) {
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington REQUIRE(type == dns_rdatatype_isdn);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington UNUSED(name);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington UNUSED(type);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington UNUSED(rdclass);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington UNUSED(wildcard);
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellington
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellington return (ISC_TRUE);
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington}
7c37bc1a67a80209e05f6b1c01fa7fde7d0dd200Brian Wellington
615eff12e0e3565c52758292e10080a25d872941William Kingstatic inline isc_boolean_t
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrencechecknames_isdn(ARGS_CHECKNAMES) {
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence REQUIRE(rdata->type == dns_rdatatype_isdn);
c50936eb40263b65ebf6afe4e6556e2dc67c10e4Brian Wellington
4124057bf54f0fc75b06b35487130bbd9249ee7fBrian Wellington UNUSED(rdata);
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(owner);
615eff12e0e3565c52758292e10080a25d872941William King UNUSED(bad);
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King return (ISC_TRUE);
615eff12e0e3565c52758292e10080a25d872941William King}
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William Kingstatic inline int
615eff12e0e3565c52758292e10080a25d872941William Kingcasecompare_isdn(ARGS_COMPARE) {
615eff12e0e3565c52758292e10080a25d872941William King return (compare_isdn(rdata1, rdata2));
615eff12e0e3565c52758292e10080a25d872941William King}
615eff12e0e3565c52758292e10080a25d872941William King
615eff12e0e3565c52758292e10080a25d872941William King#endif /* RDATA_GENERIC_ISDN_20_C */
615eff12e0e3565c52758292e10080a25d872941William King