Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Structures | Data Fields
ast_dns_result Struct Reference

The result of a DNS query. More...

#include <dns_internal.h>

Collaboration diagram for ast_dns_result:
Collaboration graph
[legend]

Data Structures

struct  dns_records
 Records returned. More...
 

Data Fields

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

Detailed Description

The result of a DNS query.

Definition at line 117 of file dns_internal.h.

Field Documentation

◆ answer

const char* answer

The raw DNS answer.

Definition at line 129 of file dns_internal.h.

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

◆ answer_size

size_t answer_size

The size of the raw DNS answer.

Definition at line 131 of file dns_internal.h.

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

◆ bogus

unsigned int bogus

Whether the result is bogus.

Definition at line 121 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result().

◆ buf

char buf[0]

Buffer for dynamic data.

Definition at line 133 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result().

◆ canonical

const char* canonical

The canonical name.

Definition at line 127 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result().

◆ rcode

unsigned int rcode

Optional rcode, set if an error occurred.

Definition at line 123 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result().

◆ records

◆ secure

unsigned int secure

Whether the result is secure.

Definition at line 119 of file dns_internal.h.

Referenced by ast_dns_resolver_set_result().


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