Home
last modified time | relevance | path

Searched refs:ifaddr (Results 1 – 4 of 4) sorted by relevance

/foundation/communication/ipc/ipc/test/rpc/socket_trans/src/
Drpc_socket_trans.c309 struct ifaddrs *ifaddr; in GetSocketLocalDeviceID() local
313 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()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
Dnetwork_interface.cpp254 struct ifaddrs *ifaddr = nullptr; in FetchIpAddress() local
259 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()
/foundation/communication/dhcp/services/dhcp_client/src/
Ddhcp_function.c222 struct ifaddrs *ifaddr = NULL; in GetLocalIp() local
227 if (getifaddrs(&ifaddr) == -1) { in GetLocalIp()
232 for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) { in GetLocalIp()
271 freeifaddrs(ifaddr); in GetLocalIp()
/foundation/communication/netmanager_ext/services/mdnsmanager/src/protocol/
Dmdns_socket_listener.cpp229 ifaddrs *ifaddr = nullptr; in OpenSocketForEachIface() local
232 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()