summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-06-15 23:57:42 +0000
committermlaier <mlaier@FreeBSD.org>2004-06-15 23:57:42 +0000
commit02300f227ffc4cadfc19d925b489f443132b1376 (patch)
treed5efbd7578982ffd4278b8857f7acb6969a2ffa2 /sys/net/if_tun.c
parentefc9e973bf86814f88bf2b016d7b3d6d866fb32d (diff)
downloadFreeBSD-src-02300f227ffc4cadfc19d925b489f443132b1376.zip
FreeBSD-src-02300f227ffc4cadfc19d925b489f443132b1376.tar.gz
Replace IF_HANDOFF with new IFQ_HANDOFF to enqueue with ALTQ once enabled on
the respective drivers.
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 65618a5..90eafeb 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -446,9 +446,7 @@ tunoutput(
{
struct tun_softc *tp = ifp->if_softc;
u_short cached_tun_flags;
-#ifdef MAC
int error;
-#endif
TUNDEBUG (ifp, "tunoutput\n");
@@ -524,7 +522,8 @@ tunoutput(
}
}
- if (! IF_HANDOFF(&ifp->if_snd, m0, ifp)) {
+ IFQ_HANDOFF(ifp, m0, error);
+ if (error) {
ifp->if_collisions++;
return (ENOBUFS);
}
OpenPOWER on IntegriCloud