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, May 21, 11:10 PM
Unknown Object (File)
Sun, May 17, 10:48 PM
Unknown Object (File)
Sun, May 17, 10:48 PM
Unknown Object (File)
Sun, May 17, 10:35 PM
Unknown Object (File)
Thu, May 14, 3:36 PM
Unknown Object (File)
Thu, May 14, 7:30 AM
Unknown Object (File)
Wed, May 13, 5:41 PM
Unknown Object (File)
Mon, May 11, 12:46 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