mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Revert ip_fil_freebsd.c -r287674. This should not have gone in yet.
This commit is contained in:
parent
e1d4f0626e
commit
43fd750b64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287675
@ -1104,18 +1104,6 @@ ipf_checkv4sum(fin)
|
||||
return -1;
|
||||
}
|
||||
if (m->m_pkthdr.csum_flags & CSUM_DATA_VALID) {
|
||||
/* UDP may have zero checksum */
|
||||
if (fin->fin_p == IPPROTO_UDP && (fin->fin_flx & (FI_FRAG|FI_SHORT|FI_BAD)) == 0) {
|
||||
udphdr_t *udp = fin->fin_dp;
|
||||
if (udp->uh_sum == 0) {
|
||||
/* we're good no matter what the hardware checksum flags
|
||||
and csum_data say (handling of csum_data for zero UDP
|
||||
checksum is not consistent across all drivers) */
|
||||
fin->fin_cksum = 1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (m->m_pkthdr.csum_flags & CSUM_PSEUDO_HDR)
|
||||
sum = m->m_pkthdr.csum_data;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user