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:
Baptiste Assmann 2015-07-21 15:34:51 +02:00 committed by Willy Tarreau
parent 4ec076f8ed
commit ed97c95331

View File

@ -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;