Page MenuHomeFreeBSD

pf: Rationalize the ip_divert_ptr test
ClosedPublic

Authored by markj on Fri, Jan 23, 8:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 8, 3:09 AM
Unknown Object (File)
Mon, Feb 2, 1:59 AM
Unknown Object (File)
Sat, Jan 31, 5:08 AM
Unknown Object (File)
Fri, Jan 30, 4:34 AM
Unknown Object (File)
Sun, Jan 25, 11:24 AM
Unknown Object (File)
Sun, Jan 25, 6:44 AM
Unknown Object (File)
Sat, Jan 24, 9:43 PM
Unknown Object (File)
Sat, Jan 24, 9:05 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 Not Applicable
Unit
Tests Not Applicable