From 8382293ab13349ae30fef571d30c53f40e059566 Mon Sep 17 00:00:00 2001
From: Henning Brauer <henning@cvs.openbsd.org>
Date: Fri, 18 Apr 2014 15:20:01 +0000
Subject: reaching into altq outside #ifdef ALTQ is bad, mmkay? ok claudio

---
 sys/net/if_tun.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

(limited to 'sys/net')

diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 6e03b8e6437..96b348a19d5 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: if_tun.c,v 1.122 2014/04/14 09:06:42 mpi Exp $	*/
+/*	$OpenBSD: if_tun.c,v 1.123 2014/04/18 15:20:00 henning Exp $	*/
 /*	$NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $	*/
 
 /*
@@ -1103,11 +1103,6 @@ tunstart(struct ifnet *ifp)
 
 	splassert(IPL_NET);
 
-	if (!(tp->tun_flags & TUN_LAYER2) &&
-	    !ALTQ_IS_ENABLED(&ifp->if_snd) &&
-	    !TBR_IS_ENABLED(&ifp->if_snd))
-		return;
-
 	IFQ_POLL(&ifp->if_snd, m);
 	if (m != NULL) {
 		if (tp->tun_flags & TUN_LAYER2) {
-- 
cgit v1.2.3