Lines Matching refs:ifap
340 struct ifaddrs *ifa0, *ifap; in grab_myaddrs() local
356 for (ifap = ifa0; ifap; ifap = ifap->ifa_next) { in grab_myaddrs()
357 if (! ifap->ifa_addr) in grab_myaddrs()
360 if (ifap->ifa_addr->sa_family != AF_INET in grab_myaddrs()
362 && ifap->ifa_addr->sa_family != AF_INET6 in grab_myaddrs()
367 if (!suitable_ifaddr(ifap->ifa_name, ifap->ifa_addr)) { in grab_myaddrs()
370 ifap->ifa_name, in grab_myaddrs()
371 saddrwop2str(ifap->ifa_addr)); in grab_myaddrs()
380 p->addr = dupsaddr(ifap->ifa_addr); in grab_myaddrs()
387 if (ifap->ifa_addr->sa_family == AF_INET6) { in grab_myaddrs()
398 if (ifap->ifa_addr->sa_family == AF_INET6) { in grab_myaddrs()
403 if_nametoindex(ifap->ifa_name); in grab_myaddrs()
416 addr1, ifap->ifa_name); in grab_myaddrs()