#include <limits.h>
#include <stdlib.h>
#include <isc/net.h>
#include <isc/netdb.h>
#include <isc/once.h>
Go to the source code of this file.
Defines | |
#define | RRTYPE_WKS_ATTRIBUTES (0) |
Functions | |
static void | init_lock (void) |
static isc_boolean_t | mygetprotobyname (const char *name, long *proto) |
static isc_boolean_t | mygetservbyname (const char *name, const char *proto, long *port) |
static isc_result_t | fromtext_in_wks (ARGS_FROMTEXT) |
static isc_result_t | totext_in_wks (ARGS_TOTEXT) |
static isc_result_t | fromwire_in_wks (ARGS_FROMWIRE) |
static isc_result_t | towire_in_wks (ARGS_TOWIRE) |
static int | compare_in_wks (ARGS_COMPARE) |
static isc_result_t | fromstruct_in_wks (ARGS_FROMSTRUCT) |
static isc_result_t | tostruct_in_wks (ARGS_TOSTRUCT) |
static void | freestruct_in_wks (ARGS_FREESTRUCT) |
static isc_result_t | additionaldata_in_wks (ARGS_ADDLDATA) |
static isc_result_t | digest_in_wks (ARGS_DIGEST) |
static isc_boolean_t | checkowner_in_wks (ARGS_CHECKOWNER) |
static isc_boolean_t | checknames_in_wks (ARGS_CHECKNAMES) |
static int | casecompare_in_wks (ARGS_COMPARE) |
Variables | |
static isc_mutex_t | wks_lock |
static void init_lock | ( | void | ) | [static] |
Definition at line 36 of file wks_11.c.
References isc_mutex_init, ISC_R_SUCCESS, RUNTIME_CHECK, and wks_lock.
Referenced by fromtext_in_wks(), and isc__strerror().
static isc_boolean_t mygetprotobyname | ( | const char * | name, | |
long * | proto | |||
) | [static] |
static isc_boolean_t mygetservbyname | ( | const char * | name, | |
const char * | proto, | |||
long * | port | |||
) | [static] |
static isc_result_t fromtext_in_wks | ( | ARGS_FROMTEXT | ) | [inline, static] |
Definition at line 65 of file wks_11.c.
References isc_region::base, callbacks, DNS_AS_STR, DNS_R_BADDOTTEDQUAD, DNS_R_UNKNOWNPROTO, DNS_R_UNKNOWNSERVICE, getquad(), init_lock(), isc_buffer_add, isc_buffer_availableregion, ISC_FALSE, isc_lex_getmastertoken(), isc_lex_ungettoken(), isc_once_do, ISC_ONCE_INIT, ISC_R_NOSPACE, ISC_R_RANGE, ISC_R_SUCCESS, isc_tokentype_string, ISC_TRUE, isc_region::length, mem_tobuffer(), mygetprotobyname(), mygetservbyname(), once, origin, port, rdclass, REQUIRE, RETERR, RETTOK, RUNTIME_CHECK, token, isc_token::type, uint8_tobuffer(), and UNUSED.
static isc_result_t totext_in_wks | ( | ARGS_TOTEXT | ) | [inline, static] |
Definition at line 166 of file wks_11.c.
References isc_region::base, dns_rdata_toregion(), inet_totext(), INSIST, ISC_R_SUCCESS, isc_region_consume, isc_region::length, REQUIRE, RETERR, str_totext(), uint8_fromregion(), and UNUSED.
static isc_result_t fromwire_in_wks | ( | ARGS_FROMWIRE | ) | [inline, static] |
Definition at line 203 of file wks_11.c.
References isc_region::base, DNS_R_EXTRADATA, isc_buffer_activeregion, isc_buffer_add, isc_buffer_availableregion, isc_buffer_forward, ISC_R_NOSPACE, ISC_R_SUCCESS, ISC_R_UNEXPECTEDEND, isc_region::length, rdclass, REQUIRE, and UNUSED.
static isc_result_t towire_in_wks | ( | ARGS_TOWIRE | ) | [inline, static] |
Definition at line 233 of file wks_11.c.
References isc_region::base, dns_rdata_toregion(), isc_region::length, mem_tobuffer(), REQUIRE, and UNUSED.
static int compare_in_wks | ( | ARGS_COMPARE | ) | [inline, static] |
Definition at line 247 of file wks_11.c.
References dns_rdata_toregion(), isc_region_compare(), r1, r2, and REQUIRE.
Referenced by casecompare_in_wks().
static isc_result_t fromstruct_in_wks | ( | ARGS_FROMSTRUCT | ) | [inline, static] |
Definition at line 264 of file wks_11.c.
References mem_tobuffer(), rdclass, REQUIRE, RETERR, uint32_tobuffer(), uint8_tobuffer(), and UNUSED.
static isc_result_t tostruct_in_wks | ( | ARGS_TOSTRUCT | ) | [inline, static] |
Definition at line 286 of file wks_11.c.
References isc_region::base, dns_rdata_toregion(), ISC_LINK_INIT, ISC_R_NOMEMORY, ISC_R_SUCCESS, isc_region_consume, isc_region::length, mctx, mem_maybedup(), REQUIRE, uint32_fromregion(), and uint8_fromregion().
static void freestruct_in_wks | ( | ARGS_FREESTRUCT | ) | [inline, static] |
static isc_result_t additionaldata_in_wks | ( | ARGS_ADDLDATA | ) | [inline, static] |
static isc_result_t digest_in_wks | ( | ARGS_DIGEST | ) | [inline, static] |
static isc_boolean_t checkowner_in_wks | ( | ARGS_CHECKOWNER | ) | [inline, static] |
static isc_boolean_t checknames_in_wks | ( | ARGS_CHECKNAMES | ) | [inline, static] |
static int casecompare_in_wks | ( | ARGS_COMPARE | ) | [inline, static] |
isc_mutex_t wks_lock [static] |
Definition at line 34 of file wks_11.c.
Referenced by init_lock(), mygetprotobyname(), and mygetservbyname().