From 25ee6cca2a6483ef8d489b2eb60f0fbe475a32f2 Mon Sep 17 00:00:00 2001 From: wollman Date: Tue, 6 Feb 1996 18:51:28 +0000 Subject: 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 --- sys/net/if_disc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/net/if_disc.c') 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 *)⁡ - bpf_mtap(dsif.if_bpf, &m0); + bpf_mtap(&dsif, &m0); } #endif m->m_pkthdr.rcvif = ifp; -- cgit v1.1