diff options
author | luigi <luigi@FreeBSD.org> | 2001-10-07 00:18:48 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-10-07 00:18:48 +0000 |
commit | f6153dda13ef307910c3ce3d41658c592c9ce4bb (patch) | |
tree | 13446c2dab11131b382a72430013e1a2713d1214 | |
parent | 36b166d5a03f91501ad718e3337179223ae8df40 (diff) | |
download | FreeBSD-src-f6153dda13ef307910c3ce3d41658c592c9ce4bb.zip FreeBSD-src-f6153dda13ef307910c3ce3d41658c592c9ce4bb.tar.gz |
Make this compile again after the changes to make bridge kld'able
-rw-r--r-- | sys/dev/ed/if_ed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index 0500832..caa1bd2 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; |