client.c revision 12df8cb49ace435a6773b9d26d6246328f705245
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * Copyright (C) 1999 Internet Software Consortium.
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * Permission to use, copy, modify, and distribute this software for any
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * purpose with or without fee is hereby granted, provided that the above
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * copyright notice and this permission notice appear in all copies.
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
380c874925f684847d9278b909cf511cb5b0289aShawn Routhier * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
#define NS_CLIENT_TRACE
#ifdef NS_CLIENT_TRACE
struct ns_clientmgr {
unsigned int magic;
unsigned int nclients;
deventp);
unsigned char *data;
isc_region_t r;
goto done;
goto done;
DNS_SECTION_QUESTION, 0, 0);
goto done;
DNS_SECTION_ANSWER, 0, 0);
goto renderend;
goto done;
DNS_SECTION_AUTHORITY, 0, 0);
goto renderend;
goto done;
DNS_SECTION_ADDITIONAL, 0, 0);
goto done;
goto done;
done:
static inline isc_result_t
return (result);
return (result);
return (result);
return (ISC_R_SUCCESS);
unsigned int version;
if (version != 0) {
case dns_opcode_query:
case dns_opcode_update:
case dns_opcode_notify:
case dns_opcode_iquery:
static isc_result_t
return (ISC_R_NOMEMORY);
goto cleanup_client;
goto cleanup_task;
goto cleanup_task;
goto cleanup_timer;
goto cleanup_message;
goto cleanup_sendbufs;
return (ISC_R_SUCCESS);
return (result);
return (ISC_R_NOMEMORY);
goto cleanup_manager;
return (ISC_R_SUCCESS);
return (result);
if (need_destroy)
REQUIRE(n > 0);
&client);
return (result);
REQUIRE(n > 0);
return (result);