summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-02-20 19:39:49 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-02-20 19:39:49 +0000
commit564b6a39bc60122dd377e657123ba8f3d4a7ccf7 (patch)
treead1d5486bcb8cb02e81599277cc10687746dcbe1 /sys/arch
parent538f9f995c2e33db913284c36581dd9e7c924f9c (diff)
for ethernet ifaces attach bpf from ether_ifattach; jason@, aaron@, itojun@ ok
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amiga/dev/if_ae.c6
-rw-r--r--sys/arch/amiga/dev/if_ed.c6
-rw-r--r--sys/arch/amiga/dev/if_es.c6
-rw-r--r--sys/arch/amiga/dev/if_qn.c6
-rw-r--r--sys/arch/mac68k/dev/if_ae.c6
-rw-r--r--sys/arch/mac68k/dev/if_mc.c6
-rw-r--r--sys/arch/mac68k/dev/if_sn.c3
-rw-r--r--sys/arch/mvme68k/dev/if_ie.c6
-rw-r--r--sys/arch/mvme88k/dev/if_ie.c6
-rw-r--r--sys/arch/mvme88k/dev/if_ve.c6
-rw-r--r--sys/arch/powerpc/mac/if_bm.c6
-rw-r--r--sys/arch/powerpc/mac/if_gm.c6
-rw-r--r--sys/arch/sparc/dev/be.c7
-rw-r--r--sys/arch/sparc/dev/hme.c6
-rw-r--r--sys/arch/sparc/dev/if_ie.c6
-rw-r--r--sys/arch/sparc/dev/qe.c7
-rw-r--r--sys/arch/sun3/dev/if_ie.c5
-rw-r--r--sys/arch/vax/if/if_qe.c6
-rw-r--r--sys/arch/vax/if/sgec.c5
19 files changed, 18 insertions, 93 deletions
diff --git a/sys/arch/amiga/dev/if_ae.c b/sys/arch/amiga/dev/if_ae.c
index 56c63033133..633455ceac8 100644
--- a/sys/arch/amiga/dev/if_ae.c
+++ b/sys/arch/amiga/dev/if_ae.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ae.c,v 1.12 1999/05/13 15:44:47 jason Exp $ */
+/* $OpenBSD: if_ae.c,v 1.13 2001/02/20 19:39:30 mickey Exp $ */
/* $NetBSD: if_ae.c,v 1.14 1997/03/18 18:44:53 veego Exp $ */
/*
@@ -246,10 +246,6 @@ aeattach(parent, self, aux)
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
sc->sc_isr.isr_intr = aeintr;
sc->sc_isr.isr_arg = sc;
sc->sc_isr.isr_ipl = 2;
diff --git a/sys/arch/amiga/dev/if_ed.c b/sys/arch/amiga/dev/if_ed.c
index b3f0dfffdda..beb3f2fe37f 100644
--- a/sys/arch/amiga/dev/if_ed.c
+++ b/sys/arch/amiga/dev/if_ed.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ed.c,v 1.12 1999/05/13 15:44:48 jason Exp $ */
+/* $OpenBSD: if_ed.c,v 1.13 2001/02/20 19:39:29 mickey Exp $ */
/* $NetBSD: if_ed.c,v 1.26 1997/03/17 17:51:42 is Exp $ */
/*
@@ -276,10 +276,6 @@ ed_zbus_attach(parent, self, aux)
/* Print additional info when attached. */
printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr));
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
sc->sc_isr.isr_intr = edintr;
sc->sc_isr.isr_arg = sc;
sc->sc_isr.isr_ipl = 2;
diff --git a/sys/arch/amiga/dev/if_es.c b/sys/arch/amiga/dev/if_es.c
index ca82e91e13d..b1afabb0ba6 100644
--- a/sys/arch/amiga/dev/if_es.c
+++ b/sys/arch/amiga/dev/if_es.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_es.c,v 1.11 1999/05/13 15:44:48 jason Exp $ */
+/* $OpenBSD: if_es.c,v 1.12 2001/02/20 19:39:29 mickey Exp $ */
/* $NetBSD: if_es.c,v 1.16 1996/12/23 09:10:17 veego Exp $ */
/*
@@ -199,10 +199,6 @@ esattach(parent, self, aux)
/* Print additional info when attached. */
printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr));
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
sc->sc_isr.isr_intr = esintr;
sc->sc_isr.isr_arg = sc;
sc->sc_isr.isr_ipl = 2;
diff --git a/sys/arch/amiga/dev/if_qn.c b/sys/arch/amiga/dev/if_qn.c
index 6db5632a5e0..fbcb066283c 100644
--- a/sys/arch/amiga/dev/if_qn.c
+++ b/sys/arch/amiga/dev/if_qn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_qn.c,v 1.12 1999/05/13 15:44:48 jason Exp $ */
+/* $OpenBSD: if_qn.c,v 1.13 2001/02/20 19:39:30 mickey Exp $ */
/* $NetBSD: if_qn.c,v 1.10 1996/12/23 09:10:19 veego Exp $ */
/*
@@ -262,10 +262,6 @@ qnattach(parent, self, aux)
printf(": hardware address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr));
#endif
-#if NBPFILTER > 0
- bpfattach(&sc->sc_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
sc->sc_isr.isr_intr = qnintr;
sc->sc_isr.isr_arg = sc;
sc->sc_isr.isr_ipl = 2;
diff --git a/sys/arch/mac68k/dev/if_ae.c b/sys/arch/mac68k/dev/if_ae.c
index d72c57eb0de..d412299da32 100644
--- a/sys/arch/mac68k/dev/if_ae.c
+++ b/sys/arch/mac68k/dev/if_ae.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ae.c,v 1.14 1999/05/13 15:44:49 jason Exp $ */
+/* $OpenBSD: if_ae.c,v 1.15 2001/02/20 19:39:31 mickey Exp $ */
/* $NetBSD: if_ae.c,v 1.62 1997/04/24 16:52:05 scottr Exp $ */
/*
@@ -172,10 +172,6 @@ printf(": failed to clear shared memory - check configuration\n");
printf("type %s, %dKB memory\n", sc->type_str, sc->mem_size / 1024);
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
return 0;
}
diff --git a/sys/arch/mac68k/dev/if_mc.c b/sys/arch/mac68k/dev/if_mc.c
index f504b184873..e9b95dd5101 100644
--- a/sys/arch/mac68k/dev/if_mc.c
+++ b/sys/arch/mac68k/dev/if_mc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mc.c,v 1.2 1999/05/13 15:44:49 jason Exp $ */
+/* $OpenBSD: if_mc.c,v 1.3 2001/02/20 19:39:31 mickey Exp $ */
/* $NetBSD: if_mc.c,v 1.4 1998/01/12 19:22:09 thorpej Exp $ */
/*-
@@ -173,10 +173,6 @@ mcsetup(sc, lladdr)
ifp->if_flags =
IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS | IFF_MULTICAST;
ifp->if_watchdog = mcwatchdog;
-
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
if_attach(ifp);
ether_ifattach(ifp);
diff --git a/sys/arch/mac68k/dev/if_sn.c b/sys/arch/mac68k/dev/if_sn.c
index ba6609b0340..649512bde69 100644
--- a/sys/arch/mac68k/dev/if_sn.c
+++ b/sys/arch/mac68k/dev/if_sn.c
@@ -258,9 +258,6 @@ snsetup(sc, lladdr)
ifp->if_flags =
IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS | IFF_MULTICAST;
ifp->if_watchdog = snwatchdog;
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
if_attach(ifp);
ether_ifattach(ifp);
diff --git a/sys/arch/mvme68k/dev/if_ie.c b/sys/arch/mvme68k/dev/if_ie.c
index 9affbebd089..fb020f7cd3a 100644
--- a/sys/arch/mvme68k/dev/if_ie.c
+++ b/sys/arch/mvme68k/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.11 2000/01/06 03:21:42 smurph Exp $ */
+/* $OpenBSD: if_ie.c,v 1.12 2001/02/20 19:39:31 mickey Exp $ */
/*-
* Copyright (c) 1999 Steve Murphree, Jr.
@@ -464,10 +464,6 @@ ieattach(parent, self, aux)
printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr));
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
sc->sc_bustype = ca->ca_bustype;
sc->sc_ih.ih_fn = ieintr;
diff --git a/sys/arch/mvme88k/dev/if_ie.c b/sys/arch/mvme88k/dev/if_ie.c
index c3c1d4bf0a9..392cceea122 100644
--- a/sys/arch/mvme88k/dev/if_ie.c
+++ b/sys/arch/mvme88k/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.7 2000/03/03 00:54:53 todd Exp $ */
+/* $OpenBSD: if_ie.c,v 1.8 2001/02/20 19:39:32 mickey Exp $ */
/*-
* Copyright (c) 1998 Steve Murphree, Jr.
@@ -461,10 +461,6 @@ ieattach(parent, self, aux)
printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr));
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
sc->sc_bustype = ca->ca_bustype;
sc->sc_ih.ih_fn = ieintr;
diff --git a/sys/arch/mvme88k/dev/if_ve.c b/sys/arch/mvme88k/dev/if_ve.c
index 570ae98a6f1..7ad19ce5073 100644
--- a/sys/arch/mvme88k/dev/if_ve.c
+++ b/sys/arch/mvme88k/dev/if_ve.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ve.c,v 1.3 2001/02/12 08:16:23 smurph Exp $ */
+/* $OpenBSD: if_ve.c,v 1.4 2001/02/20 19:39:32 mickey Exp $ */
/*-
* Copyright (c) 1999 Steve Murphree, Jr.
* Copyright (c) 1982, 1992, 1993
@@ -380,10 +380,6 @@ struct vam7990_softc *sc;
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
if (sc->sc_memsize > 262144)
sc->sc_memsize = 262144;
diff --git a/sys/arch/powerpc/mac/if_bm.c b/sys/arch/powerpc/mac/if_bm.c
index 18d183be4a0..1ddb8e54161 100644
--- a/sys/arch/powerpc/mac/if_bm.c
+++ b/sys/arch/powerpc/mac/if_bm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bm.c,v 1.5 2000/03/31 05:33:36 rahnds Exp $ */
+/* $OpenBSD: if_bm.c,v 1.6 2001/02/20 19:39:33 mickey Exp $ */
/* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */
/*-
@@ -250,10 +250,6 @@ bmac_attach(parent, self, aux)
if_attach(ifp);
ether_ifattach(ifp);
-
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
}
/*
diff --git a/sys/arch/powerpc/mac/if_gm.c b/sys/arch/powerpc/mac/if_gm.c
index 6d6547e0431..602befc0e21 100644
--- a/sys/arch/powerpc/mac/if_gm.c
+++ b/sys/arch/powerpc/mac/if_gm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gm.c,v 1.10 2000/10/26 21:00:55 deraadt Exp $ */
+/* $OpenBSD: if_gm.c,v 1.11 2001/02/20 19:39:33 mickey Exp $ */
/* $NetBSD: if_gm.c,v 1.2 2000/03/04 11:17:00 tsubai Exp $ */
/*-
@@ -344,10 +344,6 @@ gmac_attach(parent, self, aux)
#else /* !__NetBSD__ */
ether_ifattach(ifp);
#endif /* !__NetBSD__ */
-
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
}
u_int
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c
index 62669c2c549..56291a12cee 100644
--- a/sys/arch/sparc/dev/be.c
+++ b/sys/arch/sparc/dev/be.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: be.c,v 1.24 2001/01/30 07:17:07 jason Exp $ */
+/* $OpenBSD: be.c,v 1.25 2001/02/20 19:39:33 mickey Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
@@ -226,11 +226,6 @@ beattach(parent, self, aux)
printf(" pri %d: rev %x address %s\n", pri, sc->sc_rev,
ether_sprintf(sc->sc_arpcom.ac_enaddr));
-#if NBPFILTER > 0
- bpfattach(&sc->sc_arpcom.ac_if.if_bpf, ifp, DLT_EN10MB,
- sizeof(struct ether_header));
-#endif
-
bp = ca->ca_ra.ra_bp;
if (bp != NULL && strcmp(bp->name, "be") == 0 &&
sc->sc_dev.dv_unit == bp->val[1])
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c
index 27e0cd810d6..5e81d2be22a 100644
--- a/sys/arch/sparc/dev/hme.c
+++ b/sys/arch/sparc/dev/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.30 2001/01/30 07:19:52 jason Exp $ */
+/* $OpenBSD: hme.c,v 1.31 2001/02/20 19:39:34 mickey Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -250,10 +250,6 @@ hmeattach(parent, self, aux)
/* Attach the interface. */
if_attach(ifp);
ether_ifattach(ifp);
-
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
}
/*
diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c
index b29891f30e7..b166443f10d 100644
--- a/sys/arch/sparc/dev/if_ie.c
+++ b/sys/arch/sparc/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.12 1999/09/06 07:13:06 art Exp $ */
+/* $OpenBSD: if_ie.c,v 1.13 2001/02/20 19:39:33 mickey Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
@@ -680,10 +680,6 @@ ieattach(parent, self, aux)
ether_sprintf(sc->sc_arpcom.ac_enaddr),
ie_hardware_names[sc->hard_type]);
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
-
switch (ca->ca_bustype) {
#if defined(SUN4)
case BUS_OBIO:
diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c
index 33984d790c3..4ee1d55337e 100644
--- a/sys/arch/sparc/dev/qe.c
+++ b/sys/arch/sparc/dev/qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qe.c,v 1.14 2001/01/30 07:17:07 jason Exp $ */
+/* $OpenBSD: qe.c,v 1.15 2001/02/20 19:39:34 mickey Exp $ */
/*
* Copyright (c) 1998, 2000 Jason L. Wright.
@@ -177,11 +177,6 @@ qeattach(parent, self, aux)
printf(" pri %d: rev %x address %s\n", pri, sc->sc_rev,
ether_sprintf(sc->sc_arpcom.ac_enaddr));
-#if NBPFILTER > 0
- bpfattach(&sc->sc_arpcom.ac_if.if_bpf, ifp, DLT_EN10MB,
- sizeof(struct ether_header));
-#endif
-
bp = ca->ca_ra.ra_bp;
if (bp != NULL && strcmp(bp->name, "qe") == 0 &&
sc->sc_dev.dv_unit == bp->val[1])
diff --git a/sys/arch/sun3/dev/if_ie.c b/sys/arch/sun3/dev/if_ie.c
index d69c0d5c2c1..b4dc881f3af 100644
--- a/sys/arch/sun3/dev/if_ie.c
+++ b/sys/arch/sun3/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.12 2000/08/28 21:59:34 miod Exp $ */
+/* $OpenBSD: if_ie.c,v 1.13 2001/02/20 19:39:34 mickey Exp $ */
/* $NetBSD: if_ie.c,v 1.15 1996/10/30 00:24:33 gwr Exp $ */
/*-
@@ -325,9 +325,6 @@ ie_attach(sc)
/* Attach the interface. */
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
}
/*
diff --git a/sys/arch/vax/if/if_qe.c b/sys/arch/vax/if/if_qe.c
index 36e90edf0b6..dcdd234f609 100644
--- a/sys/arch/vax/if/if_qe.c
+++ b/sys/arch/vax/if/if_qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_qe.c,v 1.11 2000/04/27 03:14:43 bjc Exp $ */
+/* $OpenBSD: if_qe.c,v 1.12 2001/02/20 19:39:35 mickey Exp $ */
/* $NetBSD: if_qe.c,v 1.39 2000/01/24 02:40:29 matt Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -358,10 +358,6 @@ qeattach(parent, self, aux)
*/
if_attach(ifp);
ether_ifattach(ifp);
-
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
return;
/*
diff --git a/sys/arch/vax/if/sgec.c b/sys/arch/vax/if/sgec.c
index 254e742d82e..0352be31789 100644
--- a/sys/arch/vax/if/sgec.c
+++ b/sys/arch/vax/if/sgec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sgec.c,v 1.1 2000/04/27 03:14:44 bjc Exp $ */
+/* $OpenBSD: sgec.c,v 1.2 2001/02/20 19:39:35 mickey Exp $ */
/* $NetBSD: sgec.c,v 1.1 1999/08/08 11:41:29 ragge Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -205,9 +205,6 @@ sgec_attach(sc)
if_attach(ifp);
ether_ifattach(ifp);
-#if NBPFILTER > 0
- bpfattach(&ifp->if_bpf, ifp, DLT_EN10MB, sizeof(struct ether_header));
-#endif
printf("\n%s: hardware address %s\n", sc->sc_dev.dv_xname,
ether_sprintf(sc->sc_ac.ac_enaddr));
return;