From 7357df6b4854f9914c605ad7c7cf3c01ea7700fd Mon Sep 17 00:00:00 2001 From: archie Date: Thu, 13 Jul 2000 22:54:34 +0000 Subject: Make all Ethernet drivers attach using ether_ifattach() and detach using ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net --- sys/alpha/tc/am7990.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/alpha') diff --git a/sys/alpha/tc/am7990.c b/sys/alpha/tc/am7990.c index 5c102dd..ef90782 100644 --- a/sys/alpha/tc/am7990.c +++ b/sys/alpha/tc/am7990.c @@ -221,10 +221,7 @@ am7990_config(sc) printf("%s: address %s\n", device_get_nameunit(sc->sc_dev), ether_sprintf(sc->sc_enaddr)); - if_attach(ifp); - ether_ifattach(ifp); - - bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); + ether_ifattach(ifp, ETHER_BPF_SUPPORTED); switch (sc->sc_memsize) { case 8192: -- cgit v1.1