Page MenuHomeFreeBSD

pf: Fix interface counters for af-to rules
ClosedPublic

Authored by vegeta_tuxpowered.net on Sep 9 2025, 1:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 6:08 PM
Unknown Object (File)
Fri, Oct 10, 4:13 PM
Unknown Object (File)
Fri, Oct 10, 4:12 PM
Unknown Object (File)
Fri, Oct 10, 4:12 PM
Unknown Object (File)
Fri, Oct 10, 10:25 AM
Unknown Object (File)
Fri, Oct 10, 10:19 AM
Unknown Object (File)
Thu, Oct 9, 8:53 PM
Unknown Object (File)
Fri, Oct 3, 4:14 PM

Details

Summary

An inbound af-to rule creates a state bypassing outbound pf_test(). In such
case increase counters of the outbound interface directly in pf_route() for
post-af-to address family.

For outbound af-to rules ensure that post-af-to address family is used to
increase interface counters.

Diff Detail

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