summaryrefslogtreecommitdiff
path: root/print-ipx.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-11 12:46:51 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-11 22:11:01 +0100
commit84ef17ac0eecb3efc11a63c3f2c578ae78732c02 (patch)
treec62632ddf7ae57a999a89938ecaf8e590bfcc019 /print-ipx.c
parent264ed29aae3407c1a6816c64813806a077ccebcb (diff)
downloadtcpdump-84ef17ac0eecb3efc11a63c3f2c578ae78732c02.tar.gz
Replace ND_TTEST2()/ND_TCHECK2() macros by macros using pointers (1/n)
ND_TTEST2(var, l) -> ND_TTEST_LEN(p, l) ND_TCHECK2(var, l) -> ND_TCHECK_LEN(p, l)
Diffstat (limited to 'print-ipx.c')
-rw-r--r--print-ipx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-ipx.c b/print-ipx.c
index dbfd7b19..ac080121 100644
--- a/print-ipx.c
+++ b/print-ipx.c
@@ -198,7 +198,7 @@ ipx_sap_print(netdissect_options *ndo, const u_char *ipx, u_int length)
/*
* 10 bytes of IPX address.
*/
- ND_TCHECK2(*ipx, 10);
+ ND_TCHECK_LEN(ipx, 10);
if (length < 10)
goto trunc;
ND_PRINT((ndo, " addr %s",
@@ -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_TCHECK2(*ipx, 4);
+ ND_TCHECK_LEN(ipx, 4);
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_TCHECK2(*ipx, 8);
+ ND_TCHECK_LEN(ipx, 8);
ND_PRINT((ndo, " %08x/%d.%d", 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_TCHECK2(*ipx, 8);
+ ND_TCHECK_LEN(ipx, 8);
ND_PRINT((ndo, " %08x/%d.%d", EXTRACT_BE_U_4(ipx),
EXTRACT_BE_U_2(ipx + 4), EXTRACT_BE_U_2(ipx + 6)));