DragonFly bugs List (threaded) for 2007-01
DragonFly BSD
DragonFly bugs List (threaded) for 2007-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 17 Jan 2007 03:59:13 +0100

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
Description: OpenPGP digital signature



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