aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2001-10-07 00:18:48 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2001-10-07 00:18:48 +0000
commit06bd2f9c813c0057c7d558bb637ac9f9e1afbfcd (patch)
tree13446c2dab11131b382a72430013e1a2713d1214 /sys/dev/ed
parent49ead724c650490b2836c910a99b3b1614684927 (diff)
Notes
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 05008327243b..caa1bd2e5019 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -2713,12 +2713,12 @@ ed_get_packet(sc, buf, len)
* 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 && do_bridge && bdg_forward_ptr != NULL &&
+ BDG_USED( (&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;