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 …]
214 static int getifaddrs(struct ifaddrs **ifa0) in getifaddrs() argument244 *ifa0 = NULL; in getifaddrs()246 recvaddrs(fd, ifa0, seq); in getifaddrs()252 for (i=*ifa0; i; i = i->ifa_next) { in getifaddrs()263 static void freeifaddrs(struct ifaddrs *ifa0) in freeifaddrs() argument267 while (ifa0) { in freeifaddrs()268 i = ifa0; in freeifaddrs()269 ifa0 = i->ifa_next; in freeifaddrs()336 struct ifaddrs *ifa0, *ifap; in grab_myaddrs() local343 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()
1008 struct ifaddrs *ifa0, *ifa; in main() local1010 if (getifaddrs(&ifa0)) { in main()1015 for (ifa = ifa0; ifa; ifa = ifa->ifa_next) { in main()1026 freeifaddrs(ifa0); in main()