summaryrefslogtreecommitdiff
path: root/print-ipx.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-01-07 21:11:43 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-01-07 21:11:43 +0100
commit494c29329f9ceade9a1c35229ecdf8805651a476 (patch)
tree563023068c1140693335e2fd20726e02cb2b35db /print-ipx.c
parentc6965fc296bc58feaa1c71fb82c92781f06b94e5 (diff)
downloadtcpdump-494c29329f9ceade9a1c35229ecdf8805651a476.tar.gz
IPX: Use more ND_TCHECK_n() macros
Diffstat (limited to 'print-ipx.c')
-rw-r--r--print-ipx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ipx.c b/print-ipx.c
index f1ef218e..72e2280e 100644
--- a/print-ipx.c
+++ b/print-ipx.c
@@ -76,7 +76,7 @@ ipx_print(netdissect_options *ndo, const u_char *p, u_int length)
if (!ndo->ndo_eflag)
ND_PRINT("IPX ");
- ND_TCHECK(ipx->srcSkt);
+ ND_TCHECK_2(ipx->srcSkt);
ND_PRINT("%s.%04x > ",
ipxaddr_string(EXTRACT_BE_U_4(ipx->srcNet), ipx->srcNode),
EXTRACT_BE_U_2(ipx->srcSkt));
@@ -86,7 +86,7 @@ ipx_print(netdissect_options *ndo, const u_char *p, u_int length)
EXTRACT_BE_U_2(ipx->dstSkt));
/* take length from ipx header */
- ND_TCHECK(ipx->length);
+ ND_TCHECK_2(ipx->length);
length = EXTRACT_BE_U_2(ipx->length);
ipx_decode(ndo, ipx, p + ipxSize, length - ipxSize);