[issue420] altq_enable: assertion: ifq->ifq_len == 0

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Tue Jan 16 19:01:31 PST 2007


Matthias-Christian Ott wrote:
Here is my pf.conf. It's neither professional nor finished.
sorry to come back to you so late.  could you try attached fix and check if this is still happening?

thanks
 simon
--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
Index: net/ifq_var.h
===================================================================
RCS file: /home/dcvs/src/sys/net/ifq_var.h,v
retrieving revision 1.8
diff -u -p -r1.8 ifq_var.h
--- net/ifq_var.h	21 May 2006 03:43:45 -0000	1.8
+++ net/ifq_var.h	17 Jan 2007 02:55:43 -0000
@@ -153,7 +153,10 @@ ifq_poll(struct ifaltq *_ifq)
 static __inline void
 ifq_purge(struct ifaltq *_ifq)
 {
-	(*_ifq->altq_request)(_ifq, ALTRQ_PURGE, NULL);
+	if (ifq_is_enabled(_ifq))
+		(*_ifq->altq_request)(_ifq, ALTRQ_PURGE, NULL);
+	else
+		IF_DRAIN(_ifq);
 }
 
 /*
Attachment:
signature.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00010.pgp
Type: application/octet-stream
Size: 252 bytes
Desc: "Description: OpenPGP digital signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20070116/4b7dae46/attachment-0021.obj>


More information about the Bugs mailing list