Home
last modified time | relevance | path

Searched refs:sourceIP (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/
H A Dsys_dev.c133 … int32_t FindDevByInterfaceIP(int32_t fd, struct ifconf ifc, struct ifreq buf[], uint32_t sourceIP) in FindDevByInterfaceIP() argument
146 if (sourceIP == ((struct sockaddr_in *)&(buf[i].ifr_addr))->sin_addr.s_addr) { in FindDevByInterfaceIP()
153 int32_t GetInterfaceNameByIP(uint32_t sourceIP, char *interfaceName, size_t nameLen) in GetInterfaceNameByIP() argument
164 devIndex = FindDevByInterfaceIP(fd, ifc, buf, sourceIP); in GetInterfaceNameByIP()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
H A Dsys_dev.c133 … int32_t FindDevByInterfaceIP(int32_t fd, struct ifconf ifc, struct ifreq buf[], uint32_t sourceIP) in FindDevByInterfaceIP() argument
146 if (sourceIP == ((struct sockaddr_in *)&(buf[i].ifr_addr))->sin_addr.s_addr) { in FindDevByInterfaceIP()
153 int32_t GetInterfaceNameByIP(uint32_t sourceIP, char *interfaceName, size_t nameLen) in GetInterfaceNameByIP() argument
164 devIndex = FindDevByInterfaceIP(fd, ifc, buf, sourceIP); in GetInterfaceNameByIP()