Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Sep 2021 10:10:19 +0200
From:      Kristof Provost <kp@FreeBSD.org>
To:        =?utf-8?q?=C3=96zkan?= KIRIK <ozkan.kirik@gmail.com>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: pf label $nr macro expand reproducable bug
Message-ID:  <90E32279-76C0-4D81-B209-BE85A181F874@FreeBSD.org>
In-Reply-To: <CAAcX-AFmFwyEK4uzK66LoBK2e6W0_-8ZkJju5jAfSYE7wmSjXA@mail.gmail.com>
References:  <CAAcX-AFmFwyEK4uzK66LoBK2e6W0_-8ZkJju5jAfSYE7wmSjXA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90E32279-76C0-4D81-B209-BE85A181F874>