diff options
Diffstat (limited to 'print-ipx.c')
-rw-r--r-- | print-ipx.c | 6 |
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)); |