]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: dns: smallest DNS fqdn size
authorBaptiste Assmann <bedis9@gmail.com>
Mon, 3 Apr 2017 12:40:20 +0000 (14:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 09:20:07 +0000 (11:20 +0200)
global variable used to define the size of the smallest fqdn possible.

include/types/dns.h

index acff53a2ed0391f2305d4e005a218a1024893e3c..f28398d6ac93eba8c5d093150734fb3d2a684ec3 100644 (file)
@@ -35,6 +35,9 @@
 /* DNS minimun record size: 1 char + 1 NULL + type + class */
 #define DNS_MIN_RECORD_SIZE    ( 1 + 1 + 2 + 2 )
 
+/* DNS smallest fqdn 'a.gl' size */
+# define DNS_SMALLEST_FQDN_SIZE        4
+
 /* maximum number of query records in a DNS response
  * For now, we allow only one */
 #define DNS_MAX_QUERY_RECORDS 1