summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-01-07 17:47:22 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-01-07 17:47:22 +0000
commit63329f576db2a359872cf8dd4b44518833b40cba (patch)
treec906f624dbe5936f2065c422b3bdc9a53ae31a74 /sys
parent90ee8a2b81ccb361eff855efb1053ceb94f34828 (diff)
apply the discover rule to bridge_output() as well
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_bridge.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 57d8748af26..d4a2816710c 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.108 2003/01/07 09:00:33 kjc Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.109 2003/01/07 17:47:21 jason Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -943,6 +943,10 @@ bridge_output(ifp, m, sa, rt)
(p->bif_state != BSTP_IFSTATE_FORWARDING))
continue;
+ if ((p->bif_flags & IFBIF_DISCOVER) == 0 &&
+ (m->m_flags & (M_BCAST | M_MCAST)) == 0)
+ continue;
+
#ifdef ALTQ
if (ALTQ_IS_ENABLED(&dst_if->if_snd) == 0)
#endif