altq assertion / kernel panic

Ask Bjørn Hansen ask at
Mon Mar 28 23:04:54 PST 2005


I was experimenting with PF and ALTQ on a netbooted Soekris 4801 when I 
got this after "pfctl -f /etc/pf.conf".

altq assertion "ifq->ifq_len == 0" failed: file 
"/usr/src/sys/contrib/altq/altq/altq_subr.c", line 256

Sadly I can't reproduce it, and I don't recall what the previous 
iterations of the pf.conf were like.

I'm using RELENG5 as of a couple of days ago plus the if_bridge patch at if that makes a 

  - ask

int_if = "sis0"
ext_if = "sis1"

table <localpublic> {,,,, \,,, }

table <rfc1918> const {,, }
table <spammers> persist

altq on $ext_if priq bandwidth 700Kb queue { std_out, voip_out, 
ssh_out, dns_out, tcp_ack_out }
queue std_out  priq(default)
queue ssh_out  priority 4 priq(red)
queue dns_out  priority 5
queue tcp_ack_out priority 8
queue voip_out priority 10

#queue std bandwidth 50% cbq(default borrow)
#queue ssh bandwidth 25% { ssh_login, ssh_bulk }
#  queue ssh_login bandwidth 25% priority 6 cbq(ecn borrow)
#  queue ssh_bulk  bandwidth 75% priority 4 cbq(ecn borrow)
#queue voip bandwidth 25% priority 7 cbq(borrow)

block in on $ext_if from { <rfc1918>, <spammers> } to any
block out on $ext_if from to any

#block from any to

#block in  all
#block out all

#pass out on $ext_if proto tcp from any to any port 22 queue(ssh_bulk, 
#pass out on $ext_if from to any queue(voip)


More information about the freebsd-stable mailing list