diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-19 12:54:25 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-19 12:54:25 +0100 |
commit | b9be0f83864ab392c2b1ac25a79aa39c263a7094 (patch) | |
tree | 7bbb88a2925bb22a5a84faabc6e3cff035d5704d /print-udld.c | |
parent | 518768cf72d47710479aab64508dc78422128999 (diff) | |
download | tcpdump-b9be0f83864ab392c2b1ac25a79aa39c263a7094.tar.gz |
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (1/n)
In bittok2str() calls.
Diffstat (limited to 'print-udld.c')
-rw-r--r-- | print-udld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-udld.c b/print-udld.c index 9e77b1c7..4b9105ba 100644 --- a/print-udld.c +++ b/print-udld.c @@ -112,7 +112,7 @@ udld_print (netdissect_options *ndo, const u_char *pptr, u_int length) UDLD_EXTRACT_VERSION(*tptr), tok2str(udld_code_values, "Reserved", code), code, - bittok2str(udld_flags_values, "none", *(tptr+1)), + bittok2str(udld_flags_values, "none", EXTRACT_8BITS((tptr + 1))), *(tptr+1), length)); |