Page MenuHomeFreeBSD

pf: Rationalize the ip_divert_ptr test
AcceptedPublic

Authored by markj on Fri, Jan 23, 8:55 PM.

Details

Reviewers
kp
igoro
glebius
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