summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nameser.h2
-rw-r--r--print-domain.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/nameser.h b/nameser.h
index 6610c6c7..d8dbd4db 100644
--- a/nameser.h
+++ b/nameser.h
@@ -216,7 +216,7 @@ typedef struct {
nd_uint16_t ancount; /* number of answer entries */
nd_uint16_t nscount; /* number of authority entries */
nd_uint16_t arcount; /* number of resource entries */
-} HEADER;
+} dns_header_t;
/*
* Macros for subfields of flag fields.
diff --git a/print-domain.c b/print-domain.c
index 8aff4e99..ae13eb9a 100644
--- a/print-domain.c
+++ b/print-domain.c
@@ -591,14 +591,14 @@ void
domain_print(netdissect_options *ndo,
const u_char *bp, u_int length, int is_mdns)
{
- const HEADER *np;
+ const dns_header_t *np;
uint16_t flags;
u_int qdcount, ancount, nscount, arcount;
u_int i;
const u_char *cp;
uint16_t b2;
- np = (const HEADER *)bp;
+ np = (const dns_header_t *)bp;
ND_TCHECK(*np);
flags = EXTRACT_BE_U_2(np->flags);
/* get the byte-order right */