summaryrefslogtreecommitdiffstats
path: root/sys/net/if_disc.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-02-06 18:51:28 +0000
committerwollman <wollman@FreeBSD.org>1996-02-06 18:51:28 +0000
commit25ee6cca2a6483ef8d489b2eb60f0fbe475a32f2 (patch)
treee789decafa3124e34fc14cb210cda149ccb87570 /sys/net/if_disc.c
parent2dfb2421458a36326af35171e59f21fbf98ab24f (diff)
downloadFreeBSD-src-25ee6cca2a6483ef8d489b2eb60f0fbe475a32f2.zip
FreeBSD-src-25ee6cca2a6483ef8d489b2eb60f0fbe475a32f2.tar.gz
Clean up Ethernet drivers:
- fill in and use ifp->if_softc - use if_bpf rather than private cookie variables - change bpf interface to take advantage of this - call ether_ifattach() directly from Ethernet drivers - delete kludge in if_attach() that did this indirectly
Diffstat (limited to 'sys/net/if_disc.c')
-rw-r--r--sys/net/if_disc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_disc.c b/sys/net/if_disc.c
index 2d4b654..70c2b39 100644
--- a/sys/net/if_disc.c
+++ b/sys/net/if_disc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* From: @(#)if_loop.c 8.1 (Berkeley) 6/10/93
- * $Id: if_disc.c,v 1.9 1995/12/02 17:11:09 bde Exp $
+ * $Id: if_disc.c,v 1.10 1995/12/03 19:08:55 bde Exp $
*/
/*
@@ -106,7 +106,7 @@ discattach(dummy)
ifp->if_addrlen = 0;
if_attach(ifp);
#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_NULL, sizeof(u_int));
+ bpfattach(ifp, DLT_NULL, sizeof(u_int));
#endif
}
@@ -144,7 +144,7 @@ dsoutput(ifp, m, dst, rt)
m0.m_len = 4;
m0.m_data = (char *)&af;
- bpf_mtap(dsif.if_bpf, &m0);
+ bpf_mtap(&dsif, &m0);
}
#endif
m->m_pkthdr.rcvif = ifp;
OpenPOWER on IntegriCloud