diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-14 21:48:23 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-14 21:50:06 +0100 |
commit | 329b43101ea97896a3e5b9dcfe97f7f9c672784b (patch) | |
tree | 519b7a85a1f9cfe8e03283bd2dd49bdad17f2492 /print-tcp.c | |
parent | 41b9478cc822feff84c3e25c2e58d33832f5d3ea (diff) | |
download | tcpdump-329b43101ea97896a3e5b9dcfe97f7f9c672784b.tar.gz |
TCP: Replace ND_TTEST2 calls by ND_TTEST_LEN calls
Diffstat (limited to 'print-tcp.c')
-rw-r--r-- | print-tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-tcp.c b/print-tcp.c index 9e449fe4..157cf7b1 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -370,7 +370,7 @@ tcp_print(netdissect_options *ndo, uint16_t sum, tcp_sum; if (IP_V(ip) == 4) { - if (ND_TTEST2(tp->th_sport, length)) { + if (ND_TTEST_LEN(tp->th_sport, length)) { sum = tcp_cksum(ndo, ip, tp, length); tcp_sum = EXTRACT_BE_U_2(tp->th_sum); @@ -382,7 +382,7 @@ tcp_print(netdissect_options *ndo, ND_PRINT((ndo, " (correct)")); } } else if (IP_V(ip) == 6 && ip6->ip6_plen) { - if (ND_TTEST2(tp->th_sport, length)) { + if (ND_TTEST_LEN(tp->th_sport, length)) { sum = tcp6_cksum(ndo, ip6, tp, length); tcp_sum = EXTRACT_BE_U_2(tp->th_sum); |