Re: pf: hardcoded AF_INET in pfr_pool_get breaks IPv6 tables

Alexandr Nedvedicky <[email protected]>
Newsgroups gmane.os.openbsd.bugs
Message-ID <[email protected]>
Hello,

On Fri, Apr 10, 2026 at 11:59:29AM +0200, Renaud Allard wrote:
</snip>
> Index: sys/net/pf_table.c
> ===================================================================
> --- sys/net/pf_table.c
> +++ sys/net/pf_table.c
> @@ -2770,7 +2770,7 @@ pfr_pool_get(struct pf_pool *rpool, stru
>  		}
>  _next_entry:
>  		/* we need to increase the counter past the nested block */
> -		pfr_prepare_network(&mask, AF_INET, ke2->pfrke_net);
> +		pfr_prepare_network(&mask, af, ke2->pfrke_net);
>  		pf_poolmask(addr, addr, SUNION2PF(&mask, af), &pfr_ffaddr, af);
>  		pf_addr_inc(addr, af);
>  		if (!pf_match_addr(0, *raddr, *rmask, addr, af)) {
> 

    The diff above has been just committed  [1]

thanks and
regards
sashan

[1] https://marc.info/?l=openbsd-cvs&m=177603641806965&w=2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.