summaryrefslogtreecommitdiff
path: root/print-icmp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-14 22:15:11 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-14 22:16:55 +0100
commit607d4a5c335795f96f2a81074ff7a624e5cee33f (patch)
tree1d056bc60227b3fe0589ece29f21746afb050254 /print-icmp.c
parent329b43101ea97896a3e5b9dcfe97f7f9c672784b (diff)
downloadtcpdump-607d4a5c335795f96f2a81074ff7a624e5cee33f.tar.gz
ICMP: Replace ND_TTEST2 calls by ND_TTEST_LEN calls
Diffstat (limited to 'print-icmp.c')
-rw-r--r--print-icmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-icmp.c b/print-icmp.c
index 4ebd977b..a9a72014 100644
--- a/print-icmp.c
+++ b/print-icmp.c
@@ -602,7 +602,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char *
* however not all implementations set the length field proper.
*/
if (!ext_dp->icmp_length &&
- ND_TTEST2(ext_dp->icmp_ext_version_res, plen - ICMP_EXTD_MINLEN)) {
+ ND_TTEST_LEN(ext_dp->icmp_ext_version_res, plen - ICMP_EXTD_MINLEN)) {
vec[0].ptr = (const uint8_t *)(const void *)&ext_dp->icmp_ext_version_res;
vec[0].len = plen - ICMP_EXTD_MINLEN;
if (in_cksum(vec, 1)) {
@@ -623,7 +623,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char *
}
hlen = plen - ICMP_EXTD_MINLEN;
- if (ND_TTEST2(ext_dp->icmp_ext_version_res, hlen)) {
+ if (ND_TTEST_LEN(ext_dp->icmp_ext_version_res, hlen)) {
vec[0].ptr = (const uint8_t *)(const void *)&ext_dp->icmp_ext_version_res;
vec[0].len = hlen;
ND_PRINT((ndo, ", checksum 0x%04x (%scorrect), length %u",