Page MenuHomeFreeBSD

pf: Rationalize the ip_divert_ptr test
ClosedPublic

Authored by markj on Jan 23 2026, 8:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 7, 10:15 PM
Unknown Object (File)
Mon, Apr 6, 4:04 PM
Unknown Object (File)
Sun, Apr 5, 6:39 AM
Unknown Object (File)
Sun, Apr 5, 4:36 AM
Unknown Object (File)
Sat, Apr 4, 9:58 PM
Unknown Object (File)
Tue, Mar 24, 11:36 PM
Unknown Object (File)
Tue, Mar 24, 11:36 PM
Unknown Object (File)
Wed, Mar 18, 10:26 PM

Details

Summary

If a rule has a divert port set, then we can reasonably predict that
ipdivert.ko is loaded, and in particular that ip_divert_ptr is set.

Moreover, in this case, if ipdivert.ko is not loaded we should just drop
the packet instead of ignoring the divert rule.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70084
Build 66967: arc lint + arc unit