Subject: Re: Help with ALTQ and pf
To: None <current-users@netbsd.org>
From: Peter Postma <peter@pointless.nl>
List: current-users
Date: 05/23/2005 16:28:56
On Mon, May 23, 2005 at 01:18:36AM -0500, Dave Huang wrote:
> On Sun, May 22, 2005 at 01:48:06PM +0200, Peter Postma wrote:
> > To my understanding, you can't use a default keep state rule when using the
> > 'tos' keyword. The problem is that a state doesn't check for the tos
> > value and when the tos changes to 0x08, the state for the connection already
> > exists.
> >
> > It should work if you change the rule "pass out keep state" to
> > "pass out all".
>
> I tried that, and it didn't seem to change anything... in any case,
Ok, that's weird...
> since you posted your ALTQ patch for -current, I decided to upgrade
> and try that out. I can't tell whether it's working or not: pfctl -v
> -s queue doesn't show the detailed queue stats like it did with 2.0
> and the pflkm package.
>
> vmbsd /# pfctl -v -s queue
> queue low priority 3
> queue std priority 7 priq( default )
> queue med priority 10
> queue hi priority 14
> queue phone priority 15
> vmbsd /#
>
> For whatever reason, the entire body of the print_priqstats() and
> print_hfscstats() functions in pfctl/pfctl_qstats.c are wrapped in an
> #ifdef __OpenBSD__.
Yep, that should be removed, see the pfctl ALTQ stats patch that I posted
in my previous mail (http://nedbsd.nl/~ppostma/pf/pfctl-altq.diff).
> Is CBQ the only scheduler supported?
>
No, priq and HFSC are also supported (see pf.conf manpage).
--
Peter Postma