mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-30 10:06:43 +00: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
@ -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 New Issue
Block a user