13 #ifndef TOR_DNS_STRUCTS_H
14 #define TOR_DNS_STRUCTS_H
19 #define MAX_ADDRESSLEN 256
29 #define CACHED_RESOLVE_MAGIC 0x1234F00D
38 #define CACHE_STATE_PENDING 0
42 #define CACHE_STATE_DONE 1
45 #define CACHE_STATE_CACHED 2
51 #define RES_STATUS_INFLIGHT 1
53 #define RES_STATUS_DONE_OK 2
55 #define RES_STATUS_DONE_ERR 3
87 unsigned int res_status_ipv4 : 2;
88 unsigned int res_status_ipv6 : 2;
89 unsigned int res_status_hostname : 2;
struct in6_addr addr_ipv6
union cached_resolve_t::@18 result_ipv4
char address[MAX_ADDRESSLEN]
pending_connection_t * pending_connections
union cached_resolve_t::@19 result_ipv6