[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pfctl: DIOCADDALTQ: Device busy



On Mon, Mar 10, 2003 at 09:43:16PM +1100, Damien Miller wrote:
> Henning Brauer wrote:
> >either you have more queuedefs you are hiding from us 
> No.
yes, you have.
look, the error is obvious.
> altq on tun0 cbq bandwidth 50Kb queue { root, std, dns, http, mail, ssh }
> queue root bandwidth 100% cbq(default ecn) { std, dns, http, mail, ssh }
you defined the queues std, dns, http, mail and ssh all TWICE.
you are telling altq that these queues are BOTH childs of the implicit root
queue AND childs of the queue "root".
correct is this:
altq on tun0 cbq bandwidth 50Kb queue root
queue root bandwidth 100% cbq(default ecn) { std, dns, http, mail, ssh }
queue std bandwidth 40% cbq(borrow ecn)
...
but then this is nonsense.
the really right thing is this:
altq on tun0 cbq bandwidth 50Kb queue { std, dns, http, mail, ssh }
queue std bandwidth 40% cbq(borrow ecn)
queue dns bandwidth 30% priority 7 cbq(borrow ecn)
queue mail bandwidth 50% priority 0 cbq(borrow ecn)
queue http bandwidth 40% priority 5 cbq(borrow ecn)
queue ssh bandwidth 40% priority 6 cbq(borrow ecn)
aka leave out the queue "root".