Lines Matching refs:ifaddrs
16 #include <ifaddrs.h>
33 struct ifaddrs *ifaddrs; /*%< List of ifaddrs */
34 struct ifaddrs *pos; /*%< Ptr to current ifaddr */
61 iter->ifaddrs = NULL;
74 if (getifaddrs(&iter->ifaddrs) < 0) {
103 if (iter->ifaddrs != NULL) /* just in case */
104 freeifaddrs(iter->ifaddrs);
118 struct ifaddrs *ifa;
213 if (iter->ifaddrs)
214 freeifaddrs(iter->ifaddrs);
215 iter->ifaddrs = NULL;
224 iter->pos = iter->ifaddrs;