The RFC 3128 test should be made after the offset mask has been applied.
Reported by: christos@NetBSD.org X-MFC with: r349399
This commit is contained in:
parent
caf3774519
commit
996fd5dc12
@ -1723,15 +1723,15 @@ ipf_pr_ipv4hdr(fin)
|
||||
* calculate the byte offset that it represents.
|
||||
*/
|
||||
off &= IP_MF|IP_OFFMASK;
|
||||
if (off == 1 && p == IPPROTO_TCP) {
|
||||
fin->fin_flx |= FI_SHORT; /* RFC 3128 */
|
||||
DT1(ipf_fi_tcp_frag_off_1, fr_info_t *, fin);
|
||||
}
|
||||
if (off != 0) {
|
||||
int morefrag = off & IP_MF;
|
||||
|
||||
fi->fi_flx |= FI_FRAG;
|
||||
off &= IP_OFFMASK;
|
||||
if (off == 1 && p == IPPROTO_TCP) {
|
||||
fin->fin_flx |= FI_SHORT; /* RFC 3128 */
|
||||
DT1(ipf_fi_tcp_frag_off_1, fr_info_t *, fin);
|
||||
}
|
||||
if (off != 0) {
|
||||
fin->fin_flx |= FI_FRAGBODY;
|
||||
off <<= 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user