summaryrefslogtreecommitdiff
path: root/sys/dev/xe
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2000-07-17 21:24:40 +0000
committerArchie Cobbs <archie@FreeBSD.org>2000-07-17 21:24:40 +0000
commit1f978f357119ba20698639fae32c13ef5eba24d9 (patch)
tree48adcff54283179bcbc84aebb109fb54bb33e718 /sys/dev/xe
parent1c5912a06e9fe13f8d64bfc9eeeb6cfc6b1caa2e (diff)
Notes
Diffstat (limited to 'sys/dev/xe')
-rw-r--r--sys/dev/xe/if_xe.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/dev/xe/if_xe.c b/sys/dev/xe/if_xe.c
index 63cbb7627750..2bde25c91b76 100644
--- a/sys/dev/xe/if_xe.c
+++ b/sys/dev/xe/if_xe.c
@@ -478,7 +478,7 @@ xe_detach(device_t dev) {
struct xe_softc *sc = device_get_softc(dev);
sc->arpcom.ac_if.if_flags &= ~IFF_RUNNING;
- if_detach(&sc->arpcom.ac_if);
+ ether_ifdetach(&sc->arpcom.ac_if, ETHER_BPF_SUPPORTED);
xe_deactivate(dev);
return 0;
}
@@ -577,14 +577,7 @@ xe_attach (device_t dev) {
device_printf(dev, "Ethernet address %6D\n", scp->arpcom.ac_enaddr, ":");
/* Attach the interface */
- if_attach(scp->ifp);
- ether_ifattach(scp->ifp);
-
- /* BPF is in the kernel, call the attach for it */
-#if XE_DEBUG > 1
- device_printf(dev, "BPF listener attached\n");
-#endif
- bpfattach(scp->ifp, DLT_EN10MB, sizeof(struct ether_header));
+ ether_ifattach(scp->ifp, ETHER_BPF_SUPPORTED);
/* Done */
return 0;