Page MenuHomeFreeBSD

pf: Count holes rather than fragments for reassembly
ClosedPublic

Authored by kp on Oct 28 2018, 6:29 AM.

Details

Summary

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

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

kp created this revision.Oct 28 2018, 6:29 AM
kp edited the summary of this revision. (Show Details)Oct 28 2018, 6:30 AM
kp added a reviewer: network.
kp set the repository for this revision to rS FreeBSD src repository.
eri accepted this revision.Oct 30 2018, 5:46 PM
This revision is now accepted and ready to land.Oct 30 2018, 5:46 PM
This revision was automatically updated to reflect the committed changes.