Page MenuHomeFreeBSD

pf: fold pf_test_fragment() into pf_test_rule()
ClosedPublic

Authored by kp on Sep 19 2024, 8:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 6:27 AM
Unknown Object (File)
Fri, Nov 1, 11:34 PM
Unknown Object (File)
Fri, Nov 1, 4:09 AM
Unknown Object (File)
Thu, Oct 24, 2:32 AM
Unknown Object (File)
Sat, Oct 12, 2:28 AM
Unknown Object (File)
Oct 3 2024, 8:24 AM
Unknown Object (File)
Oct 2 2024, 4:35 AM
Unknown Object (File)
Oct 1 2024, 11:24 AM

Details

Summary

Reduces code and fixes a bunch of bugs with fragment handling not being in sync
with the rest of the ruleset.

Much feedback from mpf, bluhm & markus
Thanks to Tony Sarendal for help with testing

ok bluhm; various previous versions ok henning, claudio, mpf, markus

Note that while this changes the order of src addr/src port/dst addr/dst port
skips this doesn't actually affect the kernel/userspace ABI. The kernel always
recalculates skip steps.

Obtained from: OpenBSD, mcbride <mcbride@openbsd.org>, 04c69899a7
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable