aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dnsparser_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-30 20:52:14 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-30 20:52:14 +0000
commitc95ddb3eac0292511af734768441444098b90be9 (patch)
tree0f9797ab72aba90fb820aca16ff4078040f6f2bb /src/include/gnunet_dnsparser_lib.h
parentee1230fff885b67efbae4fd194e7c62c93903ae3 (diff)
downloadgnunet-c95ddb3eac0292511af734768441444098b90be9.tar.gz
gnunet-c95ddb3eac0292511af734768441444098b90be9.zip
-more cleanup and input validation fixes
Diffstat (limited to 'src/include/gnunet_dnsparser_lib.h')
-rw-r--r--src/include/gnunet_dnsparser_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h
index f460bbad4..526c40ab2 100644
--- a/src/include/gnunet_dnsparser_lib.h
+++ b/src/include/gnunet_dnsparser_lib.h
@@ -31,6 +31,17 @@
31#include "gnunet_common.h" 31#include "gnunet_common.h"
32 32
33/** 33/**
34 * Maximum length of a label in DNS.
35 */
36#define GNUNET_DNSPARSER_MAX_LABEL_LENGTH 63
37
38/**
39 * Maximum length of a name in DNS.
40 */
41#define GNUNET_DNSPARSER_MAX_NAME_LENGTH 253
42
43
44/**
34 * A few common DNS types. 45 * A few common DNS types.
35 */ 46 */
36#define GNUNET_DNSPARSER_TYPE_A 1 47#define GNUNET_DNSPARSER_TYPE_A 1