ast_dns_result Struct Reference

The result of a DNS query. More...

#include <dns_internal.h>


Public Member Functions

 AST_LIST_HEAD_NOLOCK (dns_records, ast_dns_record) records
 Records returned.

Data Fields

const char * answer
 The raw DNS answer.
size_t answer_size
 The size of the raw DNS answer.
unsigned int bogus
 Whether the result is bogus.
char buf [0]
 Buffer for dynamic data.
const char * canonical
 The canonical name.
unsigned int rcode
 Optional rcode, set if an error occurred.
unsigned int secure
 Whether the result is secure.


Detailed Description

The result of a DNS query.

Definition at line 95 of file dns_internal.h.


Member Function Documentation

AST_LIST_HEAD_NOLOCK ( dns_records  ,
ast_dns_record   
)

Records returned.


Field Documentation

const char* answer

The raw DNS answer.

Definition at line 107 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result(), ast_dns_result_get_answer(), dns_naptr_alloc(), and dns_srv_alloc().

size_t answer_size

The size of the raw DNS answer.

Definition at line 109 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result(), dns_naptr_alloc(), and dns_srv_alloc().

unsigned int bogus

Whether the result is bogus.

Definition at line 99 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result(), and ast_dns_result_get_bogus().

char buf[0]

Buffer for dynamic data.

Definition at line 111 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result().

const char* canonical

The canonical name.

Definition at line 105 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result(), and ast_dns_result_get_canonical().

unsigned int rcode

Optional rcode, set if an error occurred.

Definition at line 101 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result(), and ast_dns_result_get_rcode().

unsigned int secure

Whether the result is secure.

Definition at line 97 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result(), and ast_dns_result_get_secure().


The documentation for this struct was generated from the following file:

Generated on Thu Apr 16 06:35:14 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6