1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Use queue macros.

This commit is contained in:
John Baldwin 2001-01-24 10:26:51 +00:00
parent fb8d5b0534
commit ee7a93c9ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71547

View File

@ -209,8 +209,7 @@ osf1_ioctl_i(p, uap, cmd, dir, len)
if (ifp->if_type == IFT_ETHER
&& strcmp(ifp->if_name, "ti")) { /* looks good */
/* walk the address list */
for (ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa;
ifa = TAILQ_NEXT(ifa, ifa_link)) {
TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) /* we have an address structure */
&& (sdl->sdl_family == AF_LINK) /* it's a link address */
&& (sdl->sdl_type == IFT_ETHER)) { /* for an ethernet link */