@ -69,6 +69,10 @@ extern "C" {
/* ares_getnameinfo error codes */
/* ares_getnameinfo error codes */
# define ARES_EBADFLAGS 18
# define ARES_EBADFLAGS 18
/* ares_getaddrinfo error codes */
# define ARES_ENONAME 19
# define ARES_EBADHINTS 20
/* Flag values */
/* Flag values */
# define ARES_FLAG_USEVC (1 << 0)
# define ARES_FLAG_USEVC (1 << 0)
# define ARES_FLAG_PRIMARY (1 << 1)
# define ARES_FLAG_PRIMARY (1 << 1)
@ -105,8 +109,26 @@ extern "C" {
# define ARES_NI_LOOKUPSERVICE (1 << 9)
# define ARES_NI_LOOKUPSERVICE (1 << 9)
/* Reserved for future use */
/* Reserved for future use */
# define ARES_NI_IDN (1 << 10)
# define ARES_NI_IDN (1 << 10)
# define ARES_NI_ALLOW_UNASSIGNED (1 << 11)
# define ARES_NI_IDN_ALLOW_UNASSIGNED (1 << 11)
# define ARES_NI_USE_STD3_ASCII_RULES (1 << 12)
# define ARES_NI_IDN_USE_STD3_ASCII_RULES (1 << 12)
/* Addrinfo flag values */
# define ARES_AI_CANONNAME (1 << 0)
# define ARES_AI_NUMERICHOST (1 << 1)
# define ARES_AI_PASSIVE (1 << 2)
# define ARES_AI_NUMERICSERV (1 << 3)
# define ARES_AI_V4MAPPED (1 << 4)
# define ARES_AI_ALL (1 << 5)
# define ARES_AI_ADDRCONFIG (1 << 6)
/* Reserved for future use */
# define ARES_AI_IDN (1 << 10)
# define ARES_AI_IDN_ALLOW_UNASSIGNED (1 << 11)
# define ARES_AI_IDN_USE_STD3_ASCII_RULES (1 << 12)
# define ARES_AI_CANONIDN (1 << 13)
# define ARES_AI_MASK (ARES_AI_CANONNAME|ARES_AI_NUMERICHOST|ARES_AI_PASSIVE| \
ARES_AI_NUMERICSERV | ARES_AI_V4MAPPED | ARES_AI_ALL | \
ARES_AI_ADDRCONFIG )
struct ares_options {
struct ares_options {
int flags ;
int flags ;