aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-09-30 00:37:47 +0000
committerYang Tse <yangsita@gmail.com>2007-09-30 00:37:47 +0000
commitd243908a018e4d428fb4eddc2c0aa0801a629399 (patch)
tree4c8918a233fb9a76d48a50784737af9a18a9fb7c
parentc145fbea49af558c750b29efa783312bf762a016 (diff)
improve portability, defining MAXDNAME and MAXCDNAME
-rw-r--r--ares/nameser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ares/nameser.h b/ares/nameser.h
index 34f8dab32..61741bb5f 100644
--- a/ares/nameser.h
+++ b/ares/nameser.h
@@ -149,6 +149,11 @@ typedef enum __ns_opcode {
#define T_CNAME ns_t_cname
+#define NS_MAXDNAME 256 /* maximum domain name */
+#define MAXDNAME NS_MAXDNAME
+
+#define NS_MAXCDNAME 255 /* maximum compressed domain name */
+#define MAXCDNAME NS_MAXCDNAME
#define NS_PACKETSZ 512 /* maximum packet size */
#define PACKETSZ NS_PACKETSZ