Lines Matching refs:ifa
388 struct ifaddr *ifa; in if_lladdr_count() local
393 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) in if_lladdr_count()
394 if (ifa->ifa_addr->sa_family == AF_LINK) in if_lladdr_count()
527 struct ifaddr *ifa; in if_foreach_lladdr() local
534 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) { in if_foreach_lladdr()
535 if (ifa->ifa_addr->sa_family != AF_LINK) in if_foreach_lladdr()
537 count += (*cb)(cb_arg, (struct sockaddr_dl *)ifa->ifa_addr, in if_foreach_lladdr()
596 struct ifaddr *ifa;
603 CK_STAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
604 if (ifa->ifa_addr->sa_family != type)
606 count += (*cb)(cb_arg, ifa, count);
616 struct ifaddr *ifa;
621 ifa = CK_STAILQ_FIRST(&ifp->if_addrhead);
622 if (ifa != NULL)
623 iter->context[0] = CK_STAILQ_NEXT(ifa, ifa_link);
626 return (ifa);
632 struct ifaddr *ifa = iter->context[0];
634 if (ifa != NULL)
635 iter->context[0] = CK_STAILQ_NEXT(ifa, ifa_link);
636 return (ifa);