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)
Sun, Feb 8, 11:26 AM
Unknown Object (File)
Sat, Feb 7, 9:21 PM
Unknown Object (File)
Jan 31 2026, 12:14 AM
Unknown Object (File)
Jan 22 2026, 10:39 PM
Unknown Object (File)
Jan 21 2026, 9:37 AM
Unknown Object (File)
Jan 14 2026, 9:57 PM
Unknown Object (File)
Dec 20 2025, 8:47 AM
Unknown Object (File)
Dec 13 2025, 6:58 PM

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