Back out rev 1.150; things are more complicated than this.
This commit is contained in:
parent
446e2b519e
commit
23c9d6e6be
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user