mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Fix formatting of iso88025_ifattach().
This commit is contained in:
parent
fe7e109c6f
commit
bf54cb290a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112272
@ -94,15 +94,15 @@ iso88025_ifattach(struct ifnet *ifp)
|
||||
ifp->if_mtu = ISO88025_DEFAULT_MTU;
|
||||
ifp->if_broadcastaddr = etherbroadcastaddr;
|
||||
|
||||
ifa = ifaddr_byindex(ifp->if_index);
|
||||
if (ifa == 0) {
|
||||
printf("iso88025_ifattach: no lladdr!\n");
|
||||
return;
|
||||
}
|
||||
sdl = (struct sockaddr_dl *)ifa->ifa_addr;
|
||||
sdl->sdl_type = IFT_ISO88025;
|
||||
sdl->sdl_alen = ifp->if_addrlen;
|
||||
bcopy(IFP2AC(ifp)->ac_enaddr, LLADDR(sdl), ifp->if_addrlen);
|
||||
ifa = ifaddr_byindex(ifp->if_index);
|
||||
if (ifa == 0) {
|
||||
printf("iso88025_ifattach: no lladdr!\n");
|
||||
return;
|
||||
}
|
||||
sdl = (struct sockaddr_dl *)ifa->ifa_addr;
|
||||
sdl->sdl_type = IFT_ISO88025;
|
||||
sdl->sdl_alen = ifp->if_addrlen;
|
||||
bcopy(IFP2AC(ifp)->ac_enaddr, LLADDR(sdl), ifp->if_addrlen);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user