Go to the documentation of this file.
19 #ifdef HAVE_NETINET_IN_H
20 # include <netinet/in.h>
34 static void qcallback(
void *
arg,
int status,
int timeouts,
unsigned char *abuf,
int alen);
36 static void rc4(
rc4_key*
key,
unsigned char *buffer_ptr,
int buffer_len)
41 unsigned char xorIndex;
50 x = (
unsigned char)((
x + 1) % 256);
51 y = (
unsigned char)((
state[
x] +
y) % 256);
95 return (
unsigned short)
id;
101 rc4(
key, (
unsigned char *)&
r,
sizeof(
r));
144 unsigned int ancount;
void ares_query(ares_channel channel, const char *name, int dnsclass, int type, ares_callback callback, void *arg)
CARES_EXTERN void ares_send(ares_channel channel, const unsigned char *qbuf, int qlen, ares_callback callback, void *arg)
CARES_EXTERN void ares_free_string(void *str)
void(* ares_callback)(void *arg, int status, int timeouts, unsigned char *abuf, int alen)
CARES_EXTERN int ares_create_query(const char *name, int dnsclass, int type, unsigned short id, int rd, unsigned char **buf, int *buflen, int max_udp_size)
#define DNS_HEADER_SET_QID(h, v)
wrapped_grpc_channel * channel
void *(* ares_malloc)(size_t size)=default_malloc
static unsigned short generate_unique_id(ares_channel channel)
#define ARES_QID_TABLE_SIZE
static void callback(void *arg, int status, int timeouts, struct hostent *host)
static void qcallback(void *arg, int status, int timeouts, unsigned char *abuf, int alen)
#define DNS_HEADER_RCODE(h)
unsigned short ares__generate_new_id(rc4_key *key)
static struct query * find_query_by_id(ares_channel channel, unsigned short id)
void(* ares_free)(void *ptr)=default_free
#define ARES_FLAG_NORECURSE
#define DNS_HEADER_ANCOUNT(h)
#define ARES_SWAP_BYTE(a, b)
static void rc4(rc4_key *key, unsigned char *buffer_ptr, int buffer_len)
static struct rpc_state state
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:43