]> The Tcpdump Group git mirrors - tcpdump/commitdiff
TCP: Replace ND_TTEST2 calls by ND_TTEST_LEN calls
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 14 Dec 2017 20:48:23 +0000 (21:48 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 14 Dec 2017 20:50:06 +0000 (21:50 +0100)
print-tcp.c

index 9e449fe456d2b2eff8b736f2b74978c1409a1477..157cf7b1fd8532390736de2c4df1765d2d9ecb8b 100644 (file)
@@ -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);