summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2014-04-19 15:54:39 +0000
committerhenning <henning@openbsd.org>2014-04-19 15:54:39 +0000
commitdb8d900f82cf07372e68b3e48d5dbf0b817dfac5 (patch)
treee455a86bc45b4e8d96d72ec23237d0c44ee327cc
parentTry to be clear why struct mrt_config nodes are allocated and (diff)
downloadwireguard-openbsd-db8d900f82cf07372e68b3e48d5dbf0b817dfac5.tar.xz
wireguard-openbsd-db8d900f82cf07372e68b3e48d5dbf0b817dfac5.zip
minus altq tentacles, plus missing IF_DROP here as well
-rw-r--r--sys/net/bridgestp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index faee3486ef0..3217eb8cb5d 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bridgestp.c,v 1.46 2013/10/20 08:48:39 deraadt Exp $ */
+/* $OpenBSD: bridgestp.c,v 1.47 2014/04/19 15:54:39 henning Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -484,11 +484,10 @@ bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp,
if (ifp == NULL || (ifp->if_flags & IFF_RUNNING) == 0)
goto done;
-#ifdef ALTQ
- if (!ALTQ_IS_ENABLED(&ifp->if_snd))
-#endif
- if (IF_QFULL(&ifp->if_snd))
+ if (IF_QFULL(&ifp->if_snd)) {
+ IF_DROP(&ifp->if_snd);
goto done;
+ }
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL)