diff options
author | Yang Tse <yangsita@gmail.com> | 2007-09-30 00:37:47 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-09-30 00:37:47 +0000 |
commit | a0b8ac2bdc5e2706811b5516f36d882daa2624ed (patch) | |
tree | e2f8196d7d151bff24ed1689650183956fbbf7ef /nameser.h | |
parent | 879f89a989777837cc983fa384f0b184b29f6e3f (diff) | |
download | c-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |