summaryrefslogtreecommitdiff
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2001-11-03 00:36:11 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2001-11-03 00:36:11 +0000
commit441475c178898b8c3da2379e8474465623e2fe40 (patch)
tree55bca080661bb21d6e90764d5331808888ca183e /sys/dev/ed
parent0b75fd67ab37eec66787eaead4bd8e44d9d59b62 (diff)
Notes
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index bef3529a793a..b798854ea752 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -64,9 +64,7 @@
#include <net/bpf.h>
#include "opt_bdg.h"
-#ifdef BRIDGE
#include <net/bridge.h>
-#endif
#include <machine/clock.h>
#include <machine/md_var.h>
@@ -2684,17 +2682,15 @@ ed_get_packet(sc, buf, len)
m->m_data += 2;
eh = mtod(m, struct ether_header *);
-#ifdef BRIDGE
/*
* Don't read in the entire packet if we know we're going to drop it
* and no bpf is active.
*/
- if (!sc->arpcom.ac_if.if_bpf &&
- do_bridge && BDG_USED( (&sc->arpcom.ac_if) ) ) {
+ if (!sc->arpcom.ac_if.if_bpf && BDG_ACTIVE( (&sc->arpcom.ac_if) ) ) {
struct ifnet *bif;
ed_ring_copy(sc, buf, (char *)eh, ETHER_HDR_LEN);
- bif = bridge_in(&sc->arpcom.ac_if, eh) ;
+ bif = bridge_in_ptr(&sc->arpcom.ac_if, eh) ;
if (bif == BDG_DROP) {
m_freem(m);
return;
@@ -2703,11 +2699,10 @@ ed_get_packet(sc, buf, len)
ed_ring_copy(sc, buf + ETHER_HDR_LEN,
(char *)(eh + 1), len - ETHER_HDR_LEN);
} else
-#endif
- /*
- * Get packet, including link layer address, from interface.
- */
- ed_ring_copy(sc, buf, (char *)eh, len);
+ /*
+ * Get packet, including link layer address, from interface.
+ */
+ ed_ring_copy(sc, buf, (char *)eh, len);
/*
* Remove link layer address.