From 90a55f822ac1f4c32085de4c0b5de45b03da191d Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 28 Sep 1999 03:42:32 +0000 Subject: [PATCH] Fix breakage caused by last commit. Also accommodate the new interfaces to the bpf* routines so this driver has a fighting chance of actually working once it's compiled. Silently approved by: freebsd-alpha@freebsd.org --- sys/alpha/tc/am7990.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/alpha/tc/am7990.c b/sys/alpha/tc/am7990.c index a6f83739fd17..2e955302e780 100644 --- a/sys/alpha/tc/am7990.c +++ b/sys/alpha/tc/am7990.c @@ -78,7 +78,6 @@ */ #include "opt_inet.h" -#include #include #include #include @@ -103,6 +102,7 @@ #ifdef INET #include #endif +#include #include #include @@ -226,7 +226,7 @@ am7990_config(sc) if_attach(ifp); ether_ifattach(ifp); - bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header)); + bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); switch (sc->sc_memsize) { case 8192: @@ -563,7 +563,7 @@ am7990_read(sc, boff, len) * If so, hand off the raw packet to BPF. */ if (ifp->if_bpf) { - bpf_mtap(ifp->if_bpf, m); + bpf_mtap(ifp, m); #ifndef LANCE_REVC_BUG /* @@ -919,7 +919,7 @@ am7990_start(ifp) * before we commit it to the wire. */ if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m); + bpf_mtap(ifp, m); /* * Copy the mbuf chain into the transmit buffer.