summaryrefslogtreecommitdiff
path: root/print-sunatm.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-06-16 17:23:21 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-03-26 21:06:24 +0100
commitee68aa36460d7efeca48747f33b7f2adc0900bfb (patch)
tree72c1b65d29301835c0e064b433ea685fc856a68e /print-sunatm.c
parent1af20c3adc4dfef93de41d4fcd02f0aeb6bbfd4e (diff)
downloadtcpdump-ee68aa36460d7efeca48747f33b7f2adc0900bfb.tar.gz
Use the new GET_ macros instead of the EXTRACT_ ones
The exceptions are currently: Some EXTRACT_ in print-juniper.c, not used on packet buffer pointer. An EXTRACT_BE_U_3 in addrtoname.c, not always used on packet buffer pointer.
Diffstat (limited to 'print-sunatm.c')
-rw-r--r--print-sunatm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-sunatm.c b/print-sunatm.c
index e1686d83..0e8fe57d 100644
--- a/print-sunatm.c
+++ b/print-sunatm.c
@@ -76,10 +76,10 @@ sunatm_if_print(netdissect_options *ndo,
}
if (ndo->ndo_eflag) {
- ND_PRINT(EXTRACT_U_1(p + DIR_POS) & 0x80 ? "Tx: " : "Rx: ");
+ ND_PRINT(GET_U_1(p + DIR_POS) & 0x80 ? "Tx: " : "Rx: ");
}
- switch (EXTRACT_U_1(p + DIR_POS) & 0x0f) {
+ switch (GET_U_1(p + DIR_POS) & 0x0f) {
case PT_LANE:
traftype = ATM_LANE;
@@ -94,8 +94,8 @@ sunatm_if_print(netdissect_options *ndo,
break;
}
- vci = EXTRACT_BE_U_2(p + VCI_POS);
- vpi = EXTRACT_U_1(p + VPI_POS);
+ vci = GET_BE_U_2(p + VCI_POS);
+ vpi = GET_U_1(p + VPI_POS);
p += PKT_BEGIN_POS;
caplen -= PKT_BEGIN_POS;