Set if_type and if_addrlen before calling if_attach(), so the values are
available for the routine to use.
This commit is contained in:
parent
f3bfc73757
commit
cfeff1b693
@ -655,10 +655,10 @@ ether_ifattach(ifp, bpf)
|
||||
register struct ifaddr *ifa;
|
||||
register struct sockaddr_dl *sdl;
|
||||
|
||||
if_attach(ifp);
|
||||
ifp->if_type = IFT_ETHER;
|
||||
ifp->if_addrlen = 6;
|
||||
ifp->if_hdrlen = 14;
|
||||
if_attach(ifp);
|
||||
ifp->if_mtu = ETHERMTU;
|
||||
ifp->if_resolvemulti = ether_resolvemulti;
|
||||
if (ifp->if_baudrate == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user