Back out rev 1.150; things are more complicated than this.

This commit is contained in:
sam 2002-11-15 18:42:10 +00:00
parent 446e2b519e
commit 23c9d6e6be

View File

@ -423,7 +423,7 @@ if_attach(ifp)
socksize = sizeof(*sdl);
socksize = ROUNDUP(socksize);
ifasize = sizeof(*ifa) + 2 * socksize;
ifa = (struct ifaddr *)malloc(ifasize, M_IFADDR, M_NOWAIT | M_ZERO);
ifa = (struct ifaddr *)malloc(ifasize, M_IFADDR, M_WAITOK | M_ZERO);
if (ifa) {
sdl = (struct sockaddr_dl *)(ifa + 1);
sdl->sdl_len = socksize;