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:
Jonathan Lemon 2001-10-11 05:37:59 +00:00
parent f3bfc73757
commit cfeff1b693

View File

@ -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)