diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-21 17:38:35 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-21 17:38:35 +0100 |
commit | 4b21d2bad77ab4744e6a693318311aae62195a21 (patch) | |
tree | b69f424ed8897552ecf3b436c9673b1f41a88d40 /print-aoe.c | |
parent | eb3e918e0ad657a73260c849c3576de437bb04c5 (diff) | |
download | tcpdump-4b21d2bad77ab4744e6a693318311aae62195a21.tar.gz |
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (14/n)
Assignment, one operator.
Diffstat (limited to 'print-aoe.c')
-rw-r--r-- | print-aoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-aoe.c b/print-aoe.c index c790ee2a..7dcf5aa2 100644 --- a/print-aoe.c +++ b/print-aoe.c @@ -350,7 +350,7 @@ aoev1_print(netdissect_options *ndo, if (len < AOEV1_COMMON_HDR_LEN) goto invalid; /* Flags */ - flags = *cp & 0x0F; + flags = EXTRACT_8BITS(cp) & 0x0F; ND_PRINT((ndo, ", Flags: [%s]", bittok2str(aoev1_flag_str, "none", flags))); cp += 1; if (! ndo->ndo_vflag) |