summaryrefslogtreecommitdiff
path: root/print-ipx.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-02-12 14:24:07 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-02-12 14:24:07 +0100
commit98b1206b9f5d2cf4f01a748c284228ab95d6fba7 (patch)
tree7f9c9c20f78a19637b53d0bba609a888713262af /print-ipx.c
parent00e5ed0bcd248178af28c5fc6c7e1bf87efd2bd4 (diff)
downloadtcpdump-98b1206b9f5d2cf4f01a748c284228ab95d6fba7.tar.gz
IPX: Use more ND_TCHECK_n() macros
Diffstat (limited to 'print-ipx.c')
-rw-r--r--print-ipx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-ipx.c b/print-ipx.c
index 6dfa0a9e..80c76619 100644
--- a/print-ipx.c
+++ b/print-ipx.c
@@ -209,7 +209,7 @@ ipx_sap_print(netdissect_options *ndo, const u_char *ipx, u_int length)
* 2 bytes of socket and 2 bytes of number of intermediate
* networks.
*/
- ND_TCHECK_LEN(ipx, 4);
+ ND_TCHECK_4(ipx);
if (length < 4)
goto trunc;
ipx += 4;
@@ -241,7 +241,7 @@ ipx_rip_print(netdissect_options *ndo, const u_char *ipx, u_int length)
if (length != 0) {
if (length < 8)
goto trunc;
- ND_TCHECK_LEN(ipx, 8);
+ ND_TCHECK_8(ipx);
ND_PRINT(" %08x/%u.%u", EXTRACT_BE_U_4(ipx),
EXTRACT_BE_U_2(ipx + 4), EXTRACT_BE_U_2(ipx + 6));
}
@@ -251,7 +251,7 @@ ipx_rip_print(netdissect_options *ndo, const u_char *ipx, u_int length)
for (i = 0; i < 50 && length != 0; i++) {
if (length < 8)
goto trunc;
- ND_TCHECK_LEN(ipx, 8);
+ ND_TCHECK_8(ipx);
ND_PRINT(" %08x/%u.%u", EXTRACT_BE_U_4(ipx),
EXTRACT_BE_U_2(ipx + 4), EXTRACT_BE_U_2(ipx + 6));