From 21b8ebd926583116aa2cfe13371539035c4c8249 Mon Sep 17 00:00:00 2001 From: Archie Cobbs 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/dev/de/if_de.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/dev/de') diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c index 3b2a4fbf93a0..7037f6dbfa73 100644 --- a/sys/dev/de/if_de.c +++ b/sys/dev/de/if_de.c @@ -4874,11 +4874,8 @@ tulip_attach( tulip_reset(sc); - if_attach(ifp); + ether_ifattach(&(sc)->tulip_if, ETHER_BPF_SUPPORTED); ifp->if_snd.ifq_maxlen = ifqmaxlen; - ether_ifattach(&(sc)->tulip_if); - - bpfattach(&sc->tulip_if, DLT_EN10MB, sizeof(struct ether_header)); } #if defined(TULIP_BUS_DMA) -- cgit v1.3