projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ec076f
)
MINOR: dns: new macro to compute DNS header size
author
Baptiste Assmann
<bedis9@gmail.com>
Tue, 21 Jul 2015 13:34:51 +0000
(15:34 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Mon, 12 Sep 2016 17:53:59 +0000
(19:53 +0200)
macro to compute in a simple way the size of the dns_header structure.
Make the code more readable were used.
include/types/dns.h
patch
|
blob
|
history
diff --git
a/include/types/dns.h
b/include/types/dns.h
index
01d42f9
..
994dec3
100644
(file)
--- a/
include/types/dns.h
+++ b/
include/types/dns.h
@@
-70,6
+70,9
@@
*/
#define SRV_MAX_PREF_NET 5
+/* DNS header size */
+#define DNS_HEADER_SIZE sizeof(struct dns_header)
+
/* DNS request or response header structure */
struct dns_header {
uint16_t id;