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)
Jan 13 2024, 7:26 PM
Unknown Object (File)
Jan 8 2024, 2:54 PM
Unknown Object (File)
Jan 8 2024, 2:39 PM
Unknown Object (File)
Jan 8 2024, 2:39 PM
Unknown Object (File)
Dec 31 2023, 8:46 PM
Unknown Object (File)
Dec 23 2023, 12:12 AM
Unknown Object (File)
Dec 19 2023, 9:05 PM
Unknown Object (File)
Dec 12 2023, 11:34 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