summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-12-07 20:42:55 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-12-07 20:42:55 +0000
commit6da8ecb14e156a423919f1edb39860776caf63ac (patch)
tree3e755c4e7c2030b1c20284ea2693a7c22d287051 /sys
parent7318c24e485033bf8f728d11b0c7d0db51f4244e (diff)
remove freebsd bridging stuff, and let ALL packets go to ether_input()
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_ste.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c
index fb7090fc6cb..bb0a721dfaa 100644
--- a/sys/dev/pci/if_ste.c
+++ b/sys/dev/pci/if_ste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ste.c,v 1.1 1999/12/07 01:45:29 aaron Exp $ */
+/* $OpenBSD: if_ste.c,v 1.2 1999/12/07 20:42:54 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
@@ -63,12 +63,6 @@
#include <net/bpf.h>
#endif
-#if 0
-#ifdef BRIDGE
-#include <net/bridge.h>
-#endif
-#endif
-
#include <vm/vm.h> /* for vtophys */
#include <vm/pmap.h> /* for vtophys */
@@ -690,38 +684,6 @@ again:
bpf_mtap(ifp->if_bpf, m);
#endif
-#if 0
-#ifdef BRIDGE
- if (do_bridge) {
- struct ifnet *bdg_ifp ;
- bdg_ifp = bridge_in(m);
- if (bdg_ifp != BDG_LOCAL && bdg_ifp != BDG_DROP)
- bdg_forward(&m, bdg_ifp);
- if (((bdg_ifp != BDG_LOCAL) && (bdg_ifp != BDG_BCAST) &&
- (bdg_ifp != BDG_MCAST)) || bdg_ifp == BDG_DROP) {
- m_freem(m);
- continue;
- }
- }
-#endif
-#endif
-
-#if NBPFILTER > 0
- /*
- * Don't pass packet up to the ether_input() layer unless it's
- * a broadcast packet, multicast packet, matches our ethernet
- * address or the interface is in promiscuous mode.
- */
- if (ifp->if_bpf) {
- if (ifp->if_flags & IFF_PROMISC &&
- (bcmp(eh->ether_dhost, sc->arpcom.ac_enaddr,
- ETHER_ADDR_LEN) && (eh->ether_dhost[0] & 1) == 0)){
- m_freem(m);
- continue;
- }
- }
-#endif
-
/* Remove header from mbuf and pass it on. */
m_adj(m, sizeof(struct ether_header));
ether_input(ifp, eh, m);