From 4239d6781953c558ebf4fa2010ff23f4630ad217 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Sun, 30 Jun 2002 13:04:37 +0000 Subject: allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always know the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok --- sys/dev/pci/if_lmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/if_lmc.c b/sys/dev/pci/if_lmc.c index 523e6541f97..e6df0b65203 100644 --- a/sys/dev/pci/if_lmc.c +++ b/sys/dev/pci/if_lmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lmc.c,v 1.14 2002/06/02 22:50:00 deraadt Exp $ */ +/* $OpenBSD: if_lmc.c,v 1.15 2002/06/30 13:04:36 itojun Exp $ */ /* $NetBSD: if_lmc.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */ /*- @@ -1447,6 +1447,7 @@ lmc_attach(lmc_softc_t * const sc) #endif if_attach(ifp); + if_alloc_sadl(ifp); #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) sppp_attach((struct ifnet *)&sc->lmc_sppp); -- cgit v1.2.3