-more cleanup and input validation fixes
[oweals/gnunet.git] / src / include / gnunet_dnsparser_lib.h
index f460bbad4bfa1ec9adac2928134afaae36655100..526c40ab2ed7ad4a67864e6976e67315db1cb31b 100644 (file)
 #include "platform.h"
 #include "gnunet_common.h"
 
+/**
+ * Maximum length of a label in DNS.
+ */
+#define GNUNET_DNSPARSER_MAX_LABEL_LENGTH 63
+
+/**
+ * Maximum length of a name in DNS.
+ */
+#define GNUNET_DNSPARSER_MAX_NAME_LENGTH 253
+
+
 /**
  * A few common DNS types.
  */