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)
Mon, Apr 20, 10:24 AM
Unknown Object (File)
Sun, Apr 19, 1:17 PM
Unknown Object (File)
Wed, Apr 15, 12:14 AM
Unknown Object (File)
Thu, Apr 9, 6:44 PM
Unknown Object (File)
Thu, Apr 9, 1:32 PM
Unknown Object (File)
Thu, Apr 9, 8:02 AM
Unknown Object (File)
Thu, Apr 9, 2:15 AM
Unknown Object (File)
Tue, Apr 7, 9:48 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