summaryrefslogtreecommitdiff
path: root/print-atm.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-21 18:12:03 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-21 18:25:06 +0100
commit8bb03d53090d8749f3cfa38531333042d665dd36 (patch)
treeaa1c3e00b1f3803bdcca5737b93d957cd50175d3 /print-atm.c
parent4b21d2bad77ab4744e6a693318311aae62195a21 (diff)
downloadtcpdump-8bb03d53090d8749f3cfa38531333042d665dd36.tar.gz
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (15/n)
Assignment, one operator (step 2). (*e1) op e2
Diffstat (limited to 'print-atm.c')
-rw-r--r--print-atm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-atm.c b/print-atm.c
index c8a16ba6..bb7eaf3b 100644
--- a/print-atm.c
+++ b/print-atm.c
@@ -463,7 +463,7 @@ oam_print (netdissect_options *ndo,
ND_TCHECK(*(p+ATM_HDR_LEN_NOHEC+hec));
cell_header = EXTRACT_BE_32BITS(p + hec);
cell_type = ((*(p+ATM_HDR_LEN_NOHEC+hec))>>4) & 0x0f;
- func_type = (*(p+ATM_HDR_LEN_NOHEC+hec)) & 0x0f;
+ func_type = EXTRACT_8BITS((p + ATM_HDR_LEN_NOHEC + hec)) & 0x0f;
vpi = (cell_header>>20)&0xff;
vci = (cell_header>>4)&0xffff;