Lines Matching refs:ifa
280 struct ifaddr *ifa;
410 ifa = &ia->ia_ifa;
414 ifa->ifa_addr = (struct sockaddr *)&ia->ia_addr;
415 ifa->ifa_dstaddr = (struct sockaddr *)&ia->ia_dstaddr;
416 ifa->ifa_netmask = (struct sockaddr *)&ia->ia_sockmask;
426 if_attach_ifa(ifp, ifa);
627 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link)
628 if (ifa->ifa_addr->sa_family == AF_INET)
631 if (ifa != 0) {
787 ifa = &ia->ia_ifa;
790 if_detach_ifa(ifp, ifa);
801 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link)
802 if (ifa->ifa_addr->sa_family == AF_INET)
805 if (ifa == 0) {
823 ifa = ifa_ifpgetprimary(ifp, AF_INET);
824 if (ifa != NULL) {
825 error = ifnet_ioctl(ifp, PF_INET, SIOCSIFADDR, ifa);
830 ifafree(ifa);
958 struct ifaddr *ifa;
1057 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
1058 if (ifa->ifa_addr->sa_family != AF_INET6)
1062 candidate.s_addr = ((struct sockaddr_in *)&ifa->ifa_addr)->sin_addr.s_addr;
1068 if (!ifa)
1070 ia = (struct in_ifaddr *)ifa;
1263 struct ifaddr *ifa;
1276 #define ia ((struct in_ifaddr *)ifa)
1278 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
1279 if (ifa->ifa_addr == NULL) {
1283 if (ifa->ifa_addr->sa_family == AF_INET &&