summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-09-28 03:42:32 +0000
committersteve <steve@FreeBSD.org>1999-09-28 03:42:32 +0000
commit90a55f822ac1f4c32085de4c0b5de45b03da191d (patch)
tree6ecaa9b3fd336814a0a05b7746c1d3c915e41efa
parentff0e4918f2b2fa00ee666fb588b7cb56d858c9b0 (diff)
downloadFreeBSD-src-90a55f822ac1f4c32085de4c0b5de45b03da191d.zip
FreeBSD-src-90a55f822ac1f4c32085de4c0b5de45b03da191d.tar.gz
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
-rw-r--r--sys/alpha/tc/am7990.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/alpha/tc/am7990.c b/sys/alpha/tc/am7990.c
index a6f8373..2e95530 100644
--- a/sys/alpha/tc/am7990.c
+++ b/sys/alpha/tc/am7990.c
@@ -78,7 +78,6 @@
*/
#include "opt_inet.h"
-#include <net/bpf.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -103,6 +102,7 @@
#ifdef INET
#include <netinet/in.h>
#endif
+#include <net/bpf.h>
#include <net/ethernet.h>
#include <net/if_arp.h>
@@ -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.
OpenPOWER on IntegriCloud