Searched refs:ifaddr (Results 1 – 4 of 4) sorted by relevance
309 struct ifaddrs *ifaddr; in GetSocketLocalDeviceID() local313 if (getifaddrs(&ifaddr) == -1) { in GetSocketLocalDeviceID()315 freeifaddrs(ifaddr); in GetSocketLocalDeviceID()319 for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) { in GetSocketLocalDeviceID()349 freeifaddrs(ifaddr); in GetSocketLocalDeviceID()
254 struct ifaddrs *ifaddr = nullptr; in FetchIpAddress() local259 if (getifaddrs(&ifaddr) == -1) { in FetchIpAddress()264 for (ifa = ifaddr, n = 0; ifa != nullptr; ifa = ifa->ifa_next, n++) { in FetchIpAddress()278 freeifaddrs(ifaddr); in FetchIpAddress()
222 struct ifaddrs *ifaddr = NULL; in GetLocalIp() local227 if (getifaddrs(&ifaddr) == -1) { in GetLocalIp()232 for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) { in GetLocalIp()271 freeifaddrs(ifaddr); in GetLocalIp()
229 ifaddrs *ifaddr = nullptr; in OpenSocketForEachIface() local232 if (getifaddrs(&ifaddr) < 0) { in OpenSocketForEachIface()237 …for (ifaddrs *ifa = ifaddr; ifa != nullptr && socks_.size() < MDNS_MAX_SOCKET; ifa = ifa->ifa_next… in OpenSocketForEachIface()267 freeifaddrs(ifaddr); in OpenSocketForEachIface()