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)
Thu, Mar 26, 8:48 AM
Unknown Object (File)
Wed, Mar 18, 1:40 PM
Unknown Object (File)
Sat, Mar 14, 11:41 PM
Unknown Object (File)
Fri, Mar 13, 11:32 AM
Unknown Object (File)
Thu, Mar 12, 8:34 PM
Unknown Object (File)
Tue, Mar 10, 11:34 PM
Unknown Object (File)
Fri, Mar 6, 2:29 PM
Unknown Object (File)
Fri, Mar 6, 2:09 AM

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