79ce3a9e82384cc31fd6b86be8f3d1474fcfd9f4Evan Hunt * Copyright (C) 1999-2005, 2007, 2008, 2010-2016 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
79ce3a9e82384cc31fd6b86be8f3d1474fcfd9f4Evan Hunt * file, You can obtain one at http://mozilla.org/MPL/2.0/.
79ce3a9e82384cc31fd6b86be8f3d1474fcfd9f4Evan Hunt * The format of an ncache rdata is a sequence of zero or more records of
79ce3a9e82384cc31fd6b86be8f3d1474fcfd9f4Evan Hunt * the following format:
79ce3a9e82384cc31fd6b86be8f3d1474fcfd9f4Evan Hunt * owner name
static isc_result_t
static inline isc_result_t
return (ISC_R_NOSPACE);
return (ISC_R_NOSPACE);
return (result);
return (result);
return (ISC_R_SUCCESS);
static isc_result_t
isc_region_t r;
&name);
DNS_RDATASETATTR_NCACHE) == 0)
return (result);
return (ISC_R_NOSPACE);
&buffer);
return (result);
return (ISC_R_NOSPACE);
next++;
return (result);
ttl = 0;
== ISC_R_SUCCESS);
if (optout)
0, addedrdataset));
unsigned int *countp)
count = 0;
for (i = 0; i < rcount; i++) {
goto rollback;
goto rollback;
goto rollback;
count++;
goto rollback;
return (ISC_R_SUCCESS);
*countp = 0;
return (result);
static isc_result_t
if (count == 0) {
return (ISC_R_NOMORE);
count--;
return (ISC_R_SUCCESS);
static isc_result_t
if (count == 0)
return (ISC_R_NOMORE);
count--;
return (ISC_R_SUCCESS);
isc_region_t r;
return (count);
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
return (ISC_R_NOTFOUND);
return (result);
return (ISC_R_SUCCESS);
return (ISC_R_NOTFOUND);
return (result);
return (ISC_R_SUCCESS);