in6_cksum() returns zero when checksums are good.
PR: 203275 Reported by: Frank Volf <frank@deze.org> MFC after: 3 days
This commit is contained in:
parent
75d286742d
commit
55cab13b31
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355669
@ -6744,7 +6744,7 @@ ipf_checkl4sum(fin)
|
||||
#endif
|
||||
DT3(l4sums, u_short, hdrsum, u_short, sum, fr_info_t *, fin);
|
||||
#ifdef USE_INET6
|
||||
if (hdrsum == sum || (sum == 0 && fin->fin_p == IPPROTO_ICMPV6)) {
|
||||
if (hdrsum == sum || (sum == 0 && IP_V(fin->fin_ip) == 6)) {
|
||||
#else
|
||||
if (hdrsum == sum) {
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user