summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorhpopescu@ixiacom.com <hpopescu@ixiacom.com>2012-08-10 09:06:09 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2012-08-16 22:54:47 (GMT)
commit90364defb038d5d6b97acf9df9ed152d2393a863 (patch)
tree82ea71d7a7718652727fed628849a247c464728b /ares.h
parente447bc5c603a139852fd74d9930c1293535ea749 (diff)
downloadc-ares-90364defb038d5d6b97acf9df9ed152d2393a863.zip
c-ares-90364defb038d5d6b97acf9df9ed152d2393a863.tar.gz
c-ares-90364defb038d5d6b97acf9df9ed152d2393a863.tar.bz2
Added new feature (rfc2671)
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index c5e4069..f0cc824 100644
--- a/ares.h
+++ b/ares.h
@@ -143,6 +143,7 @@ extern "C" {
#define ARES_FLAG_NOSEARCH (1 << 5)
#define ARES_FLAG_NOALIASES (1 << 6)
#define ARES_FLAG_NOCHECKRESP (1 << 7)
+#define ARES_FLAG_EDNS (1 << 8)
/* Option mask values */
#define ARES_OPT_FLAGS (1 << 0)
@@ -160,6 +161,7 @@ extern "C" {
#define ARES_OPT_SOCK_RCVBUF (1 << 12)
#define ARES_OPT_TIMEOUTMS (1 << 13)
#define ARES_OPT_ROTATE (1 << 14)
+#define ARES_OPT_EDNSPSZ (1 << 15)
/* Nameinfo flag values */
#define ARES_NI_NOFQDN (1 << 0)
@@ -265,6 +267,7 @@ struct ares_options {
void *sock_state_cb_data;
struct apattern *sortlist;
int nsort;
+ int ednspsz;
};
struct hostent;
@@ -403,6 +406,15 @@ CARES_EXTERN void ares_process_fd(ares_channel channel,
ares_socket_t read_fd,
ares_socket_t write_fd);
+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);
+
CARES_EXTERN int ares_mkquery(const char *name,
int dnsclass,
int type,