summaryrefslogtreecommitdiff
path: root/print-tftp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-18 11:52:52 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-18 13:56:40 +0100
commit577621026df8d4a33a34d4e125f9ec964fc0e53c (patch)
treea25ed4b22461cbb115c9e112935c28bcd57406bc /print-tftp.c
parent0e854b0937199956478686ae610ff9f794aafc6b (diff)
downloadtcpdump-577621026df8d4a33a34d4e125f9ec964fc0e53c.tar.gz
Rename EXTRACT_nBITS() macros to EXTRACT_BE_nBITS()
It indicates clearly that these macros are used to extract big-endian integral values.
Diffstat (limited to 'print-tftp.c')
-rw-r--r--print-tftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-tftp.c b/print-tftp.c
index 6600c9cf..b4d82129 100644
--- a/print-tftp.c
+++ b/print-tftp.c
@@ -102,7 +102,7 @@ tftp_print(netdissect_options *ndo,
if (length < 2)
goto trunc;
ND_TCHECK_16BITS(bp);
- opcode = EXTRACT_16BITS(bp);
+ opcode = EXTRACT_BE_16BITS(bp);
cp = tok2str(op2str, "tftp-#%d", opcode);
ND_PRINT((ndo, " %s", cp));
/* Bail if bogus opcode */
@@ -169,7 +169,7 @@ tftp_print(netdissect_options *ndo,
if (length < 2)
goto trunc; /* no block number */
ND_TCHECK_16BITS(bp);
- ND_PRINT((ndo, " block %d", EXTRACT_16BITS(bp)));
+ ND_PRINT((ndo, " block %d", EXTRACT_BE_16BITS(bp)));
break;
case TFTP_ERROR:
@@ -178,7 +178,7 @@ tftp_print(netdissect_options *ndo,
goto trunc; /* no error code */
ND_TCHECK_16BITS(bp);
ND_PRINT((ndo, " %s", tok2str(err2str, "tftp-err-#%d \"",
- EXTRACT_16BITS(bp))));
+ EXTRACT_BE_16BITS(bp))));
bp += 2;
length -= 2;
/* Print error message string */