Page MenuHomeFreeBSD

pfctl: delay label macro expansion until after rule optimisation
ClosedPublic

Authored by kp on Oct 13 2021, 8:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 10:50 PM
Unknown Object (File)
Thu, Nov 21, 10:50 PM
Unknown Object (File)
Thu, Nov 21, 10:50 PM
Unknown Object (File)
Thu, Nov 21, 10:23 PM
Unknown Object (File)
Tue, Nov 12, 1:39 AM
Unknown Object (File)
Tue, Nov 12, 1:35 AM
Unknown Object (File)
Oct 14 2024, 9:52 PM
Unknown Object (File)
Oct 2 2024, 7:32 AM
Subscribers

Details

Summary

We used to expand the $nr macro in labels into the rule number prior to
the optimisation step. This would occasionally produce incorrect rule
numbers in the labels.

Delay all macro expansion until after the optimisation step to ensure
that we expand the correct values.

MFC after: 1 week
Reported by: Özkan KIRIK <ozkan.kirik@gmail.com>

Diff Detail

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