summaryrefslogtreecommitdiff
path: root/nameser.h
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
commita0b8ac2bdc5e2706811b5516f36d882daa2624ed (patch)
treee2f8196d7d151bff24ed1689650183956fbbf7ef /nameser.h
parent879f89a989777837cc983fa384f0b184b29f6e3f (diff)
downloadc-ares-a0b8ac2bdc5e2706811b5516f36d882daa2624ed.tar.gz
c-ares-a0b8ac2bdc5e2706811b5516f36d882daa2624ed.tar.bz2
c-ares-a0b8ac2bdc5e2706811b5516f36d882daa2624ed.zip
improve portability, defining MAXDNAME and MAXCDNAME
Diffstat (limited to 'nameser.h')
-rw-r--r--nameser.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nameser.h b/nameser.h
index 34f8dab..61741bb 100644
--- a/nameser.h
+++ b/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