Macros | Functions
ares_init.c File Reference
#include "ares_setup.h"
#include "ares_nameser.h"
#include "ares.h"
#include "ares_inet_net_pton.h"
#include "ares_library_init.h"
#include "ares_nowarn.h"
#include "ares_platform.h"
#include "ares_private.h"
Include dependency graph for ares_init.c:

Go to the source code of this file.

Macros

#define ARES_CONFIG_CHECK(x)
 
#define toolong(x)   (x == -1) && (SOCKERRNO == EINVAL)
 
#define vqualifier
 

Functions

void ares__init_servers_state (ares_channel channel)
 
int ares_dup (ares_channel *dest, ares_channel src)
 
int ares_init (ares_channel *channelptr)
 
int ares_init_options (ares_channel *channelptr, struct ares_options *options, int optmask)
 
static int ares_ipv6_server_blacklisted (const unsigned char ipaddr[16])
 
static int ares_ipv6_subnet_matches (const unsigned char netbase[16], unsigned char netmask, const unsigned char ipaddr[16])
 
int ares_save_options (ares_channel channel, struct ares_options *options, int *optmask)
 
void ares_set_local_dev (ares_channel channel, const char *local_dev_name)
 
void ares_set_local_ip4 (ares_channel channel, unsigned int local_ip)
 
void ares_set_local_ip6 (ares_channel channel, const unsigned char *local_ip6)
 
void ares_set_socket_callback (ares_channel channel, ares_sock_create_callback cb, void *data)
 
void ares_set_socket_configure_callback (ares_channel channel, ares_sock_config_callback cb, void *data)
 
void ares_set_socket_functions (ares_channel channel, const struct ares_socket_functions *funcs, void *data)
 
int ares_set_sortlist (ares_channel channel, const char *sortstr)
 
static int config_domain (ares_channel channel, char *str)
 
static int config_lookup (ares_channel channel, const char *str, const char *bindch, const char *altbindch, const char *filech)
 
static int config_nameserver (struct server_state **servers, int *nservers, char *str)
 
static int config_sortlist (struct apattern **sortlist, int *nsort, const char *str)
 
static int init_by_defaults (ares_channel channel)
 
static int init_by_environment (ares_channel channel)
 
static int init_by_options (ares_channel channel, const struct ares_options *options, int optmask)
 
static int init_by_resolv_conf (ares_channel channel)
 
static int init_id_key (rc4_key *key, int key_data_len)
 
static int ip_addr (const char *s, ares_ssize_t len, struct in_addr *addr)
 
static void natural_mask (struct apattern *pat)
 
static void randomize_key (unsigned char *key, int key_data_len)
 
static int set_options (ares_channel channel, const char *str)
 
static int set_search (ares_channel channel, const char *str)
 
static int sortlist_alloc (struct apattern **sortlist, int *nsort, struct apattern *pat)
 
static char * try_config (char *s, const char *opt, char scc)
 
static const char * try_option (const char *p, const char *q, const char *opt)
 

Macro Definition Documentation

◆ ARES_CONFIG_CHECK

#define ARES_CONFIG_CHECK (   x)
Value:
(x->lookups && x->nsort > -1 && \
x->nservers > -1 && \
x->ndomains > -1 && \
x->ndots > -1 && x->timeout > -1 && \
x->tries > -1)

Definition at line 92 of file ares_init.c.

◆ toolong

#define toolong (   x)    (x == -1) && (SOCKERRNO == EINVAL)

◆ vqualifier

#define vqualifier

Definition at line 2051 of file ares_init.c.

Function Documentation

◆ ares__init_servers_state()

void ares__init_servers_state ( ares_channel  channel)

Definition at line 2633 of file ares_init.c.

◆ ares_dup()

int ares_dup ( ares_channel dest,
ares_channel  src 
)

Definition at line 243 of file ares_init.c.

◆ ares_init()

int ares_init ( ares_channel channelptr)

Definition at line 98 of file ares_init.c.

◆ ares_init_options()

int ares_init_options ( ares_channel channelptr,
struct ares_options options,
int  optmask 
)

Definition at line 103 of file ares_init.c.

◆ ares_ipv6_server_blacklisted()

static int ares_ipv6_server_blacklisted ( const unsigned char  ipaddr[16])
static

Definition at line 2125 of file ares_init.c.

◆ ares_ipv6_subnet_matches()

static int ares_ipv6_subnet_matches ( const unsigned char  netbase[16],
unsigned char  netmask,
const unsigned char  ipaddr[16] 
)
static

Definition at line 2097 of file ares_init.c.

◆ ares_save_options()

int ares_save_options ( ares_channel  channel,
struct ares_options options,
int optmask 
)

Definition at line 314 of file ares_init.c.

◆ ares_set_local_dev()

void ares_set_local_dev ( ares_channel  channel,
const char *  local_dev_name 
)

Definition at line 2581 of file ares_init.c.

◆ ares_set_local_ip4()

void ares_set_local_ip4 ( ares_channel  channel,
unsigned int  local_ip 
)

Definition at line 2568 of file ares_init.c.

◆ ares_set_local_ip6()

void ares_set_local_ip6 ( ares_channel  channel,
const unsigned char *  local_ip6 
)

Definition at line 2574 of file ares_init.c.

◆ ares_set_socket_callback()

void ares_set_socket_callback ( ares_channel  channel,
ares_sock_create_callback  cb,
void *  data 
)

Definition at line 2590 of file ares_init.c.

◆ ares_set_socket_configure_callback()

void ares_set_socket_configure_callback ( ares_channel  channel,
ares_sock_config_callback  cb,
void *  data 
)

Definition at line 2598 of file ares_init.c.

◆ ares_set_socket_functions()

void ares_set_socket_functions ( ares_channel  channel,
const struct ares_socket_functions funcs,
void *  data 
)

Definition at line 2606 of file ares_init.c.

◆ ares_set_sortlist()

int ares_set_sortlist ( ares_channel  channel,
const char *  sortstr 
)

Definition at line 2614 of file ares_init.c.

◆ config_domain()

static int config_domain ( ares_channel  channel,
char *  str 
)
static

Definition at line 2034 of file ares_init.c.

◆ config_lookup()

static int config_lookup ( ares_channel  channel,
const char *  str,
const char *  bindch,
const char *  altbindch,
const char *  filech 
)
static

Definition at line 2054 of file ares_init.c.

◆ config_nameserver()

static int config_nameserver ( struct server_state **  servers,
int nservers,
char *  str 
)
static

Definition at line 2163 of file ares_init.c.

◆ config_sortlist()

static int config_sortlist ( struct apattern **  sortlist,
int nsort,
const char *  str 
)
static

Definition at line 2231 of file ares_init.c.

◆ init_by_defaults()

static int init_by_defaults ( ares_channel  channel)
static

Definition at line 1881 of file ares_init.c.

◆ init_by_environment()

static int init_by_environment ( ares_channel  channel)
static

Definition at line 538 of file ares_init.c.

◆ init_by_options()

static int init_by_options ( ares_channel  channel,
const struct ares_options options,
int  optmask 
)
static

Definition at line 420 of file ares_init.c.

◆ init_by_resolv_conf()

static int init_by_resolv_conf ( ares_channel  channel)
static

Definition at line 1435 of file ares_init.c.

◆ init_id_key()

static int init_id_key ( rc4_key key,
int  key_data_len 
)
static

Definition at line 2534 of file ares_init.c.

◆ ip_addr()

static int ip_addr ( const char *  s,
ares_ssize_t  len,
struct in_addr *  addr 
)
static

Definition at line 2452 of file ares_init.c.

◆ natural_mask()

static void natural_mask ( struct apattern pat)
static

Definition at line 2465 of file ares_init.c.

◆ randomize_key()

static void randomize_key ( unsigned char *  key,
int  key_data_len 
)
static

Definition at line 2505 of file ares_init.c.

◆ set_options()

static int set_options ( ares_channel  channel,
const char *  str 
)
static

Definition at line 2343 of file ares_init.c.

◆ set_search()

static int set_search ( ares_channel  channel,
const char *  str 
)
static

Definition at line 2321 of file ares_init.c.

◆ sortlist_alloc()

static int sortlist_alloc ( struct apattern **  sortlist,
int nsort,
struct apattern pat 
)
static

Definition at line 2485 of file ares_init.c.

◆ try_config()

static char * try_config ( char *  s,
const char *  opt,
char  scc 
)
static

Definition at line 2381 of file ares_init.c.

◆ try_option()

static const char * try_option ( const char *  p,
const char *  q,
const char *  opt 
)
static

Definition at line 2373 of file ares_init.c.

x
int x
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3610


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:03