summaryrefslogtreecommitdiff
path: root/print-udld.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-27 18:28:49 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-27 18:28:49 +0100
commit99227bf55234b457b8e5ac39992a6db6db388939 (patch)
tree81b40951545cdc27d6a20d8b714e11ac395e49fd /print-udld.c
parent2858e729edf1112bc075c8fb72a66726009b391b (diff)
downloadtcpdump-99227bf55234b457b8e5ac39992a6db6db388939.tar.gz
Use more the EXTRACT_U_1() macro (30/n)
Diffstat (limited to 'print-udld.c')
-rw-r--r--print-udld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-udld.c b/print-udld.c
index 6833ed68..748016c6 100644
--- a/print-udld.c
+++ b/print-udld.c
@@ -106,10 +106,10 @@ udld_print (netdissect_options *ndo, const u_char *pptr, u_int length)
ND_TCHECK2(*tptr, UDLD_HEADER_LEN);
- code = UDLD_EXTRACT_OPCODE(*tptr);
+ code = UDLD_EXTRACT_OPCODE(EXTRACT_U_1(tptr));
ND_PRINT((ndo, "UDLDv%u, Code %s (%x), Flags [%s] (0x%02x), length %u",
- UDLD_EXTRACT_VERSION(*tptr),
+ UDLD_EXTRACT_VERSION(EXTRACT_U_1(tptr)),
tok2str(udld_code_values, "Reserved", code),
code,
bittok2str(udld_flags_values, "none", EXTRACT_U_1((tptr + 1))),