projects
/
haproxy-2.3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d41fe7
)
MINOR: dns: smallest DNS fqdn size
author
Baptiste Assmann
<bedis9@gmail.com>
Mon, 3 Apr 2017 12:40:20 +0000
(14:40 +0200)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/include/types/dns.h
b/include/types/dns.h
index
acff53a
..
f28398d
100644
(file)
--- a/
include/types/dns.h
+++ b/
include/types/dns.h
@@
-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