a134177ed9f82189504191d90f3ed9e97c2b47cbTinderbox User * Copyright (C) 2013-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 if (locator_pton(DNS_AS_STR(token), locator) != 1)
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (mem_tobuffer(target, locator, NS_LOCATORSZ));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (mem_tobuffer(target, sregion.base, sregion.length));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (mem_tobuffer(target, rdata->data, rdata->length));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrewsstatic inline int
b0ba1a6059b6d6c4b3aa77d8bc84cc443b981e01Mukund Sivaraman REQUIRE(rdata1->type == dns_rdatatype_l64);
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (isc_region_compare(®ion1, ®ion2));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews return (mem_tobuffer(target, l64->l64, sizeof(l64->l64)));
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrewsstatic inline void
b0ba1a6059b6d6c4b3aa77d8bc84cc443b981e01Mukund Sivaraman REQUIRE(l64->common.rdtype == dns_rdatatype_l64);
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrewsstatic inline int
f1c1aab2c9e720399d66d8db5f40515d47c45ecfMark Andrews#endif /* RDATA_GENERIC_L64_106_C */