Re: pf label $nr macro expand reproducable bug

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Sat, 18 Sep 2021 08:10:19 UTC
On 15 Sep 2021, at 9:43, Özkan KIRIK wrote:
> I'm using FreeBSD stable/12.
> I've tested this situation on stable/12 both 0f97f2a1857a (Jul 26
> 2021) and ebb3327d09ce (Sep 14) build.
>
> label $nr macro is works as expected for most of rules. But with the
> example below $nr macro was expanded incorrectly. Outputs are below.
>
> If you need, I can open a PR.
>
> # ifconfig -g lo
> lo0
>
> Experiment #1: The right output should be "ruleNo:2", but system
> expands as "ruleNo:257".
>
I can’t reproduce this, either on main or on stable/12.

Br,
Kristof