The lemac driver didn't pass transmitted packets to bpf. Now it does.

Reviewed by:
Submitted by:
Obtained from:
This commit is contained in:
Paul Richards 1995-07-29 13:00:17 +00:00
parent d5fc4d2a65
commit 73f0203186
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9761

View file

@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_le.c,v 1.16 1995/05/09 12:25:55 rgrimes Exp $
* $Id: if_le.c,v 1.17 1995/05/30 08:02:22 rgrimes Exp $
*/
/*
@ -1193,6 +1193,12 @@ lemac_start(
m_copydata(m, 0, m->m_pkthdr.len, sc->le_membase + txoff);
LE_OUTB(sc, LEMAC_REG_TQ, tx_pg); /* tell chip to transmit this packet */
#if NBPFILTER > 0
if (sc->le_bpf)
bpf_mtap(sc->le_bpf, m);
#endif
m_freem(m); /* free the mbuf */
}
LEMAC_INTR_ENABLE(sc);