mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +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:
parent
4ec076f8ed
commit
ed97c95331
@ -70,6 +70,9 @@
|
|||||||
*/
|
*/
|
||||||
#define SRV_MAX_PREF_NET 5
|
#define SRV_MAX_PREF_NET 5
|
||||||
|
|
||||||
|
/* DNS header size */
|
||||||
|
#define DNS_HEADER_SIZE sizeof(struct dns_header)
|
||||||
|
|
||||||
/* DNS request or response header structure */
|
/* DNS request or response header structure */
|
||||||
struct dns_header {
|
struct dns_header {
|
||||||
uint16_t id;
|
uint16_t id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user