diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-02 16:57:13 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-01-02 16:57:13 +0100 |
commit | 8382e04eec789ad4e82db62830d0915817adb14c (patch) | |
tree | 6e078455362dc089b702c74f2326f2da9415fd1f | |
parent | c6a0c105334b262707361884d682a5fdfb4cc11d (diff) | |
download | tcpdump-8382e04eec789ad4e82db62830d0915817adb14c.tar.gz |
DNS: Coding style update
-rw-r--r-- | nameser.h | 2 | ||||
-rw-r--r-- | print-domain.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 */ |