summaryrefslogtreecommitdiff
path: root/print-sunatm.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-03 13:53:38 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-03 14:00:15 +0100
commit10a52254aeb943a15518461c055429cc42a305ef (patch)
treefb84630725fb805a48ac6ceda30aff47554de155 /print-sunatm.c
parent61c422a88caefe986c2bc0a7f2f3028f696fa5cd (diff)
downloadtcpdump-10a52254aeb943a15518461c055429cc42a305ef.tar.gz
Use more the EXTRACT_U_1() macro (44/n)
In: switch (... p[n] ...) ...
Diffstat (limited to 'print-sunatm.c')
-rw-r--r--print-sunatm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-sunatm.c b/print-sunatm.c
index eaa7125d..c46598d4 100644
--- a/print-sunatm.c
+++ b/print-sunatm.c
@@ -81,7 +81,7 @@ sunatm_if_print(netdissect_options *ndo,
ND_PRINT((ndo, EXTRACT_U_1(p + DIR_POS) & 0x80 ? "Tx: " : "Rx: "));
}
- switch (p[DIR_POS] & 0x0f) {
+ switch (EXTRACT_U_1(p + DIR_POS) & 0x0f) {
case PT_LANE:
traftype = ATM_LANE;