nta.c revision a853d87fc422f5ade566a5e264bbb1a6914dbef6
7b4b6f361b2fb2291c2019b377a9c0c8e80cfd6bMark Andrews * Copyright (C) 2014-2018 Internet Systems Consortium, Inc. ("ISC")
7b4b6f361b2fb2291c2019b377a9c0c8e80cfd6bMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
7b4b6f361b2fb2291c2019b377a9c0c8e80cfd6bMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
7b4b6f361b2fb2291c2019b377a9c0c8e80cfd6bMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
struct dns_nta {
unsigned int magic;
unsigned int refs;
if (refs == 0) {
return (ISC_R_NOMEMORY);
goto cleanup_ntatable;
goto cleanup_task;
goto cleanup_rbt;
return (ISC_R_SUCCESS);
return (result);
if (destroy) {
switch (eresult) {
case ISC_R_SUCCESS:
case DNS_R_NCACHENXDOMAIN:
case DNS_R_NXDOMAIN:
case DNS_R_NCACHENXRRSET:
case DNS_R_NXRRSET:
static isc_result_t
return (ISC_R_SUCCESS);
return (ISC_R_SUCCESS);
return (result);
static isc_result_t
return (ISC_R_NOMEMORY);
return (result);
return (ISC_R_SUCCESS);
return (result);
if (!force)
if (n == NULL) {
if (!force)
return (result);
static isc_result_t
return (result);
return (result);
return (ISC_FALSE);
goto relock;
goto again;
return (answer);
static isc_result_t
return (result);
return (ISC_R_SUCCESS);
goto cleanup;
isc_time_t t;
tbuf);
goto cleanup;
return (result);
goto cleanup;
isc_time_t t;
tbuf);
return (result);
return (result);
return (result);
goto cleanup;
isc_buffer_t b;
goto skip;
isc_buffer_putuint8(&b, 0);
isc_buffer_putuint8(&b, 0);
tbuf);
skip:
return (result);