mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 19:22:12 +02:00
MINOR: dns: new macro to compute DNS header size
macro to compute in a simple way the size of the dns_header structure. Make the code more readable were used.
This commit is contained in:
committed by
Willy Tarreau
parent
4ec076f8ed
commit
ed97c95331
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user