diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-12-30 18:39:32 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-12-30 18:39:32 -0800 |
commit | 43b6d48603bab5b8ae2e01bee8767ce8f3b6f75b (patch) | |
tree | e0cddeceba070db6832af4a3fff818bba0eca6ab /print-symantec.c | |
parent | ebd9266101bc8f2021462b550970ce69a155e74b (diff) | |
download | tcpdump-43b6d48603bab5b8ae2e01bee8767ce8f3b6f75b.tar.gz |
Use nd_ types.
Diffstat (limited to 'print-symantec.c')
-rw-r--r-- | print-symantec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print-symantec.c b/print-symantec.c index e80bd45c..717e4802 100644 --- a/print-symantec.c +++ b/print-symantec.c @@ -32,9 +32,9 @@ #include "ethertype.h" struct symantec_header { - uint8_t stuff1[6]; - uint16_t ether_type; - uint8_t stuff2[36]; + nd_byte stuff1[6]; + nd_uint16_t ether_type; + nd_byte stuff2[36]; }; static inline void @@ -45,7 +45,7 @@ symantec_hdr_print(netdissect_options *ndo, const u_char *bp, u_int length) sp = (const struct symantec_header *)bp; - etype = EXTRACT_BE_U_2(&sp->ether_type); + etype = EXTRACT_BE_U_2(sp->ether_type); if (!ndo->ndo_qflag) { if (etype <= MAX_ETHERNET_LENGTH_VAL) ND_PRINT((ndo, "invalid ethertype %u", etype)); @@ -90,7 +90,7 @@ symantec_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_ sp = (const struct symantec_header *)p; p += sizeof (struct symantec_header); - ether_type = EXTRACT_BE_U_2(&sp->ether_type); + ether_type = EXTRACT_BE_U_2(sp->ether_type); if (ether_type <= MAX_ETHERNET_LENGTH_VAL) { /* ether_type not known, print raw packet */ |