HomeFreeBSD

pf: Count holes rather than fragments for reassembly

Description

pf: Count holes rather than fragments for reassembly

Avoid traversing the list of fragment entris to check whether the
pf(4) reassembly is complete. Instead count the holes that are
created when inserting a fragment. If there are no holes left, the
fragments are continuous.

Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D17732

(cherry picked from commit 2b1c354ee6fb075953d2c3e81c8221f4115ce981)

Details

Provenance
kpAuthored on Nov 2 2018, 3:23 PM
Differential Revision
D17732: pf: Count holes rather than fragments for reassembly
Parents
rGf520c87f3a09: Revert "pf: Limit the maximum number of fragments per packet"
Branches
Unknown
Tags
Unknown