reaching into altq outside #ifdef ALTQ is bad, mmkay? ok claudio
authorhenning <henning@openbsd.org>
Fri, 18 Apr 2014 15:20:00 +0000 (15:20 +0000)
committerhenning <henning@openbsd.org>
Fri, 18 Apr 2014 15:20:00 +0000 (15:20 +0000)
sys/net/if_tun.c

index 6e03b8e..96b348a 100644 (file)
@@ -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) {