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,

</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)) {
> 

    reads good to me.

OK sashan@

thanks.
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.