summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2005-10-13 09:43:30 +0000
committerthompsa <thompsa@FreeBSD.org>2005-10-13 09:43:30 +0000
commite085cf5c30f71fc8321aa4c804d45119bcda1fad (patch)
tree6e2d31668170780f98cc29be1a0e90f85f72b79f /sys/net/if_ethersubr.c
parent8fe74b285e545ff5d761214a40bf9ec18221b427 (diff)
downloadFreeBSD-src-e085cf5c30f71fc8321aa4c804d45119bcda1fad.zip
FreeBSD-src-e085cf5c30f71fc8321aa4c804d45119bcda1fad.tar.gz
Clean up the if_bridge hooks a bit in if_ethersubr.c and ng_ether.c, move
the broadcast/multicast test to bridge_input(). Requested by: glebius
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 6971c51..627f2a3 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -592,19 +592,6 @@ ether_input(struct ifnet *ifp, struct mbuf *m)
KASSERT(bridge_input_p != NULL,
("%s: if_bridge not loaded!", __func__));
- /* Mark the packet as broadcast or multicast. This is also set
- * further down the code in ether_demux() but since the bridge
- * input routine rarely returns a mbuf for further processing,
- * it is an acceptable duplication.
- */
- if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
- if (bcmp(etherbroadcastaddr, eh->ether_dhost,
- sizeof(etherbroadcastaddr)) == 0)
- m->m_flags |= M_BCAST;
- else
- m->m_flags |= M_MCAST;
- }
-
m = (*bridge_input_p)(ifp, m);
if (m == NULL)
return;
OpenPOWER on IntegriCloud