ipf mistakenly regards UDP packets with a checksum of 0xffff as bad.
Obtained from: NetBSD fil.c r1.30, NetBSD PR/54443 MFC after: 3 days
This commit is contained in:
parent
ee7201a725
commit
d096bd7911
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352737
@ -6730,8 +6730,11 @@ ipf_checkl4sum(fin)
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
|
||||
if (csump != NULL)
|
||||
if (csump != NULL) {
|
||||
hdrsum = *csump;
|
||||
if (fin->fin_p == IPPROTO_UDP && hdrsum == 0xffff)
|
||||
hdrsum = 0x0000;
|
||||
}
|
||||
|
||||
if (dosum) {
|
||||
sum = fr_cksum(fin, fin->fin_ip, fin->fin_p, fin->fin_dp);
|
||||
|
Loading…
Reference in New Issue
Block a user