Searched refs:ifa0 (Results 1 – 5 of 5) sorted by relevance
154 struct ni_ifaddrs *ifa0; in pr_nodeinfo_ipv6addr() local165 if (ni_ifaddrs(&ifa0, AF_INET6)) in pr_nodeinfo_ipv6addr()172 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in pr_nodeinfo_ipv6addr()202 ni_freeifaddrs(ifa0); in pr_nodeinfo_ipv6addr()212 ni_freeifaddrs(ifa0); in pr_nodeinfo_ipv6addr()225 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in pr_nodeinfo_ipv6addr()264 for (ifa = ifa0, addrs = 0; in pr_nodeinfo_ipv6addr()305 ni_freeifaddrs(ifa0); in pr_nodeinfo_ipv6addr()323 struct ni_ifaddrs *ifa0; in pr_nodeinfo_ipv4addr() local334 if (ni_ifaddrs(&ifa0, AF_INET)) in pr_nodeinfo_ipv4addr()[all …]
218 static int getifaddrs(struct ifaddrs **ifa0) in getifaddrs() argument248 *ifa0 = NULL; in getifaddrs()250 recvaddrs(fd, ifa0, seq); in getifaddrs()256 for (i=*ifa0; i; i = i->ifa_next) { in getifaddrs()267 static void freeifaddrs(struct ifaddrs *ifa0) in freeifaddrs() argument271 while (ifa0) { in freeifaddrs()272 i = ifa0; in freeifaddrs()273 ifa0 = i->ifa_next; in freeifaddrs()340 struct ifaddrs *ifa0, *ifap; in grab_myaddrs() local347 if (getifaddrs(&ifa0)) { in grab_myaddrs()[all …]
598 struct ifaddrs *ifa0, *ifa; in find_device_by_ifaddrs() local601 rc = getifaddrs(&ifa0); in find_device_by_ifaddrs()607 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in find_device_by_ifaddrs()633 freeifaddrs(ifa0); in find_device_by_ifaddrs()
396 struct ifaddrs *ifa0, *ifa; in main() local399 ret = getifaddrs(&ifa0); in main()404 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in main()412 freeifaddrs(ifa0); in main()
1013 struct ifaddrs *ifa0, *ifa; in main() local1015 if (getifaddrs(&ifa0)) { in main()1020 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in main()1031 freeifaddrs(ifa0); in main()