result.c File Reference

#include <config.h>
#include <isc/once.h>
#include <isc/util.h>
#include <dns/result.h>
#include <dns/lib.h>

Go to the source code of this file.

Defines

#define DNS_RESULT_RESULTSET   2
#define DNS_RESULT_RCODERESULTSET   3

Functions

static void initialize_action (void)
static void initialize (void)
const char * dns_result_totext (isc_result_t result)
void dns_result_register (void)
dns_rcode_t dns_result_torcode (isc_result_t result)

Variables

static const char * text [DNS_R_NRESULTS]
static const char * rcode_text [DNS_R_NRCODERESULTS]
static isc_once_t once = ISC_ONCE_INIT


Detailed Description

Definition in file result.c.


Define Documentation

#define DNS_RESULT_RESULTSET   2

Definition at line 193 of file result.c.

Referenced by initialize_action().

#define DNS_RESULT_RCODERESULTSET   3

Definition at line 194 of file result.c.

Referenced by initialize_action().


Function Documentation

static void initialize_action ( void   )  [static]

Definition at line 199 of file result.c.

References dns_msgcat, DNS_R_NRCODERESULTS, DNS_R_NRESULTS, DNS_RESULT_RCODERESULTSET, DNS_RESULT_RESULTSET, ISC_R_SUCCESS, isc_result_register(), ISC_RESULTCLASS_DNS, ISC_RESULTCLASS_DNSRCODE, rcode_text, text, and UNEXPECTED_ERROR.

static void initialize ( void   )  [static]

Definition at line 215 of file result.c.

References dns_lib_initmsgcat(), initialize_action(), isc_once_do, ISC_R_SUCCESS, once, and RUNTIME_CHECK.

const char* dns_result_totext ( isc_result_t  result  ) 

Definition at line 221 of file result.c.

References initialize(), and isc_result_totext().

Referenced by _dns_tkey_dumpmessage(), acache_cleaner_init(), add_bad(), add_soa(), add_test_data(), ATF_TC_BODY(), begin_cleaning(), cache_cleaner_init(), check_mx(), check_nsec3param(), check_test_data(), closeversion(), commit(), configure_zone(), dlvfetched(), dns_acache_create(), dns_cache_clean(), dns_diff_print(), dns_rbt_formatnodename(), dns_request_createraw4(), dns_request_createvia4(), dns_root_checkhints(), dns_zone_refresh(), dsfetched(), dsfetched2(), dump_done(), dumpdone(), evaluate_key(), fetch_callback(), forward_callback(), fromtext_error(), generate(), incremental_cleaning_action(), keydone(), keyfetch_done(), keyfromds(), load_raw(), load_text(), notify_done(), ns_query(), ns_server_dumprecursing(), ns_server_dumpsecroots(), ns_server_dumpstats(), receive_secure_db(), receive_secure_serial(), refresh_callback(), req_response(), resume_addnsec3chain(), resume_signingwithkey(), revocable(), setmodtime(), setup_keystr(), soa_query(), startfinddlvsep(), stub_callback(), sync_keyzone(), update_action(), update_sigs(), verifyzone(), warn_badmx(), warn_badname(), xfrin_recv_done(), zone_journal(), zone_maintenance(), zone_nsec3chain(), zone_postload(), zone_replacedb(), zone_resigninc(), zone_sign(), and zone_xfrdone().

void dns_result_register ( void   ) 

Definition at line 228 of file result.c.

References initialize().

Referenced by dns_test_begin(), initialize(), main(), setup_libs(), and setup_system().

dns_rcode_t dns_result_torcode ( isc_result_t  result  ) 

Definition at line 233 of file result.c.

References DNS_R_BADAAAA, DNS_R_BADCKSUM, DNS_R_BADCLASS, DNS_R_BADLABELTYPE, DNS_R_BADPOINTER, DNS_R_BADTTL, DNS_R_BADZONE, DNS_R_CLOCKSKEW, DNS_R_DISALLOWED, DNS_R_EXTRADATA, DNS_R_LABELTOOLONG, DNS_R_NAMETOOLONG, DNS_R_NOREDATA, DNS_R_SYNTAX, DNS_R_TEXTTOOLONG, DNS_R_TOOMANYHOPS, DNS_R_TSIGERRORSET, DNS_R_TSIGVERIFYFAILURE, DNS_R_UNKNOWN, dns_rcode_formerr, dns_rcode_noerror, dns_rcode_notauth, dns_rcode_refused, dns_rcode_servfail, DNS_RESULT_ISRCODE, ISC_R_BADBASE64, ISC_R_NOSPACE, ISC_R_RANGE, ISC_R_SUCCESS, and ISC_R_UNEXPECTEDEND.

Referenced by ns_client_error(), and respond().


Variable Documentation

const char* text[DNS_R_NRESULTS] [static]

Definition at line 30 of file result.c.

const char* rcode_text[DNS_R_NRCODERESULTS] [static]

Initial value:

 {
        "NOERROR",                              
        "FORMERR",                              
        "SERVFAIL",                             
        "NXDOMAIN",                             
        "NOTIMP",                               

        "REFUSED",                              
        "YXDOMAIN",                             
        "YXRRSET",                              
        "NXRRSET",                              
        "NOTAUTH",                              

        "NOTZONE",                              
        "<rcode 11>",                           
        "<rcode 12>",                           
        "<rcode 13>",                           
        "<rcode 14>",                           

        "<rcode 15>",                           
        "BADVERS",                              
}

Definition at line 170 of file result.c.

Referenced by initialize_action().

isc_once_t once = ISC_ONCE_INIT [static]

Definition at line 196 of file result.c.


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha