Re: pf label $nr macro expand reproducable bug

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Thu, 23 Sep 2021 20:04:48 UTC
On 22 Sep 2021, at 11:47, Özkan KIRIK wrote:
> Hi Kristof,
>
> I tried many things and I found the real problem to reproduce the bug.
> Tested with the latest stable/12.
> And also tested with Live CD without installing
> (https://download.freebsd.org/ftp/snapshots/ISO-IMAGES/12.2/FreeBSD-12.2-STABLE-amd64-20210916-r370608-disc1.iso).
> The result is same.
>
> My determination is the problem in the rule optimizer of pf. You can
> see the difference with / without ruleset optimization.
> Without ruleset optimization, $nr macro expanding is true. otherwise false.
>
Thanks! That’s a useful bit of extra information. I’ll try to find some time to debug this soon.

Best regards,
Kristof