Asterisk - The Open Source Telephony Project  18.5.0
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(), ast_dns_result_get_answer(), 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(), and dns_srv_alloc().

◆ 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(), and ast_dns_result_get_bogus().

◆ 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(), and ast_dns_result_get_canonical().

◆ 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(), and ast_dns_result_get_rcode().

◆ 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(), and ast_dns_result_get_secure().


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