Home
last modified time | relevance | path

Searched refs:ifaddr4 (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_function.h30 int GetLocalInterface(const char *ifname, int *ifindex, unsigned char *hwaddr, uint32_t *ifaddr4);
31 int GetLocalIp(const char *ifname, uint32_t *ifaddr4);
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_function.cpp145 int GetLocalInterface(const char *ifname, int *ifindex, unsigned char *hwaddr, uint32_t *ifaddr4) in GetLocalInterface() argument
190 if (ifaddr4 != NULL) { in GetLocalInterface()
197 *ifaddr4 = pSockIn->sin_addr.s_addr; in GetLocalInterface()
203 int GetLocalIp(const char *ifname, uint32_t *ifaddr4) in GetLocalIp() argument
253 *ifaddr4 = hostIp; in GetLocalIp()
/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_function_test.cpp115 uint32_t ifaddr4; variable
116 EXPECT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, &ifaddr4), DHCP_OPT_SUCCESS);
117 EXPECT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, &ifaddr4), DHCP_OPT_SUCCESS);