Go to the documentation of this file.
20 #ifdef HAVE_NETINET_IN_H
21 # include <netinet/in.h>
26 #ifdef HAVE_ARPA_INET_H
27 # include <arpa/inet.h>
43 int ex,
void **txt_out)
46 unsigned int qdcount, ancount,
i;
47 const unsigned char *aptr;
48 const unsigned char *strptr;
49 int status, rr_type, rr_class, rr_len;
51 char *hostname = NULL, *rr_name = NULL;
85 for (
i = 0;
i < ancount;
i++)
103 if (aptr + rr_len > abuf + alen)
121 while (strptr < (aptr + rr_len))
123 substr_len = (
unsigned char)*strptr;
124 if (strptr + substr_len + 1 > aptr + rr_len)
140 txt_last->
next = txt_curr;
150 txt_curr->
length = substr_len;
152 if (txt_curr->
txt == NULL)
159 memcpy ((
char *) txt_curr->
txt, strptr, substr_len);
162 txt_curr->
txt[substr_len] = 0;
164 strptr += substr_len;
int ares_parse_txt_reply(const unsigned char *abuf, int alen, struct ares_txt_reply **txt_out)
@ ARES_DATATYPE_TXT_REPLY
OPENSSL_EXPORT X509_EXTENSION * ex
static int ares__parse_txt_reply(const unsigned char *abuf, int alen, int ex, void **txt_out)
CARES_EXTERN int ares_expand_name(const unsigned char *encoded, const unsigned char *abuf, int alen, char **s, long *enclen)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void *(* ares_malloc)(size_t size)=default_malloc
unsigned char record_start
#define DNS_HEADER_QDCOUNT(h)
int ares_parse_txt_reply_ext(const unsigned char *abuf, int alen, struct ares_txt_ext **txt_out)
struct ares_txt_ext * next
CARES_EXTERN void ares_free_data(void *dataptr)
void * ares_malloc_data(ares_datatype type)
void(* ares_free)(void *ptr)=default_free
#define DNS_HEADER_ANCOUNT(h)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:43