projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c145fbe
)
improve portability, defining MAXDNAME and MAXCDNAME
author
Yang Tse
<yangsita@gmail.com>
Sun, 30 Sep 2007 00:37:47 +0000
(
00:37
+0000)
committer
Yang Tse
<yangsita@gmail.com>
Sun, 30 Sep 2007 00:37:47 +0000
(
00:37
+0000)
ares/nameser.h
patch
|
blob
|
history
diff --git
a/ares/nameser.h
b/ares/nameser.h
index
34f8dab
..
61741bb
100644
(file)
--- 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