a134177ed9f82189504191d90f3ed9e97c2b47cbTinderbox User * Copyright (C) 2013, 2015-2017 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number,
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews RETERR(uint16_tobuffer(token.value.as_ulong, target));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string,
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews buffer_fromregion(&buffer, &token.value.as_region);
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (dns_name_fromtext(&name, &buffer, origin, options, target));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews sub = name_prefix(&name, tctx->origin, &prefix);
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (dns_name_totext(&prefix, sub, target));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (dns_name_fromwire(&name, source, dctx, options, target));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (mem_tobuffer(target, rdata->data, rdata->length));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrewsstatic inline int
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (isc_region_compare(®ion1, ®ion2));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (isc_buffer_copyregion(target, ®ion));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrewsstatic inline void
b0ba1a6059b6d6c4b3aa77d8bc84cc443b981e01Mukund Sivaraman REQUIRE(lp->common.rdtype == dns_rdatatype_lp);
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrewsstatic inline int
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (dns_name_rdatacompare(&name1, &name2));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews#endif /* RDATA_GENERIC_LP_107_C */