mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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:
parent
4ec076f8ed
commit
ed97c95331
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue