summaryrefslogtreecommitdiff
path: root/print-tftp.c
diff options
context:
space:
mode:
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 a47a7847..314dfb41 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_2(bp);
- opcode = EXTRACT_BE_16BITS(bp);
+ opcode = EXTRACT_BE_U_2(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_2(bp);
- ND_PRINT((ndo, " block %d", EXTRACT_BE_16BITS(bp)));
+ ND_PRINT((ndo, " block %d", EXTRACT_BE_U_2(bp)));
break;
case TFTP_ERROR:
@@ -178,7 +178,7 @@ tftp_print(netdissect_options *ndo,
goto trunc; /* no error code */
ND_TCHECK_2(bp);
ND_PRINT((ndo, " %s", tok2str(err2str, "tftp-err-#%d \"",
- EXTRACT_BE_16BITS(bp))));
+ EXTRACT_BE_U_2(bp))));
bp += 2;
length -= 2;
/* Print error message string */