summaryrefslogtreecommitdiff
path: root/ares_private.h
diff options
context:
space:
mode:
authorhpopescu@ixiacom.com <hpopescu@ixiacom.com>2012-08-10 12:06:09 +0300
committerDaniel Stenberg <daniel@haxx.se>2012-08-17 00:54:47 +0200
commit90364defb038d5d6b97acf9df9ed152d2393a863 (patch)
tree82ea71d7a7718652727fed628849a247c464728b /ares_private.h
parente447bc5c603a139852fd74d9930c1293535ea749 (diff)
downloadc-ares-90364defb038d5d6b97acf9df9ed152d2393a863.tar.gz
c-ares-90364defb038d5d6b97acf9df9ed152d2393a863.tar.bz2
c-ares-90364defb038d5d6b97acf9df9ed152d2393a863.zip
Added new feature (rfc2671)
Diffstat (limited to 'ares_private.h')
-rw-r--r--ares_private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ares_private.h b/ares_private.h
index 3c56bbc..8c8a08f 100644
--- a/ares_private.h
+++ b/ares_private.h
@@ -113,6 +113,13 @@
# define writev(s,ptr,cnt) ares_writev(s,ptr,cnt)
#endif
+/********* EDNS defines section ******/
+#define EDNSPACKETSZ 1280 /* Reasonable UDP payload size, as suggested
+ in RFC2671 */
+#define MAXENDSSZ 4096 /* Maximum (local) limit for edns packet size */
+#define EDNSFIXEDSZ 11 /* Size of EDNS header */
+/********* EDNS defines section ******/
+
struct ares_addr {
int family;
union {
@@ -260,6 +267,7 @@ struct ares_channeldata {
struct apattern *sortlist;
int nsort;
char *lookups;
+ int ednspsz;
/* For binding to local devices and/or IP addresses. Leave
* them null/zero for no binding.