Home
last modified time | relevance | path

Searched refs:GetLocalInterface (Results 1 - 13 of 13) sorted by relevance

/foundation/communication/dhcp/test/unittest/services/dhcp_client/
H A Ddhcp_function_test.cpp91 ASSERT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, NULL), DHCP_OPT_SUCCESS); in HWTEST_F()
100 EXPECT_EQ(GetLocalInterface(NULL, NULL, NULL, NULL), DHCP_OPT_FAILED); in HWTEST_F()
110 EXPECT_EQ(GetLocalInterface(interface, NULL, NULL, NULL), DHCP_OPT_FAILED); in HWTEST_F()
112 EXPECT_EQ(GetLocalInterface(interface, &ifindex, NULL, NULL), DHCP_OPT_FAILED); in HWTEST_F()
114 EXPECT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, NULL), DHCP_OPT_FAILED); in HWTEST_F()
116 EXPECT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, &ifaddr4), DHCP_OPT_SUCCESS); in HWTEST_F()
117 EXPECT_EQ(GetLocalInterface(interface, &ifindex, hwaddr, &ifaddr4), DHCP_OPT_SUCCESS); in HWTEST_F()
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/data/
H A Dlink_info_test.cpp104 EXPECT_EQ(info.GetLocalInterface(), ""); in HWTEST_F()
106 EXPECT_EQ(info.GetLocalInterface(), "chba0"); in HWTEST_F()
192 EXPECT_EQ(info2.GetLocalInterface(), "chba0"); in HWTEST_F()
H A Dinner_link_test.cpp62 EXPECT_EQ(info.GetLocalInterface(), ""); in HWTEST_F()
64 EXPECT_EQ(info.GetLocalInterface(), "p2p0"); in HWTEST_F()
/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);
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/
H A Dinner_link.cpp68 GetLocalInterface(), Ipv4Info(GetLocalIpv4()), Ipv4Info(GetRemoteIpv4()), GetRemoteBaseMac()); in ~InnerLink()
97 std::string InnerLink::GetLocalInterface() const in GetLocalInterface() function in OHOS::SoftBus::InnerLink
402 object["LOCAL_INTERFACE"] = GetLocalInterface(); in Dump()
H A Dlink_info.h75 std::string GetLocalInterface() const;
H A Dinner_link.h90 std::string GetLocalInterface() const;
H A Dlink_info.cpp135 std::string LinkInfo::GetLocalInterface() const in GetLocalInterface() function in OHOS::SoftBus::LinkInfo
/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() function
148 DHCP_LOGE("GetLocalInterface() failed, ifname == NULL or hwaddr is NULL"); in GetLocalInterface()
157 DHCP_LOGE("GetLocalInterface() ifname:%{public}s failed, socket err:%{public}d!", ifname, errno); in GetLocalInterface()
162 DHCP_LOGE("GetLocalInterface() ifname:%{public}s failed, memset_s error!", ifname); in GetLocalInterface()
167 DHCP_LOGE("GetLocalInterface() ifname:%{public}s failed, strncpy_s error!", ifname); in GetLocalInterface()
173 DHCP_LOGE("GetLocalInterface() %{public}s failed, SIOCGIFINDEX err:%{public}d!", ifname, errno); in GetLocalInterface()
180 DHCP_LOGE("GetLocalInterface() %{public}s failed, SIOCGIFHWADDR err:%{public}d!", ifname, errno); in GetLocalInterface()
185 DHCP_LOGE("GetLocalInterface() ifname:%{public}s failed, memcpy_s error!", ifname); in GetLocalInterface()
192 DHCP_LOGE("GetLocalInterface() %{public}s failed, SIOCGIFADDR err:%{public}d!", ifname, errno); in GetLocalInterface()
H A Ddhcp_ipv6_client.cpp366 if (GetLocalInterface(interfaceName.c_str(), &ifaceIndex, ifaceMac, NULL) != DHCP_OPT_SUCCESS) { in IsEui64ModeIpv6Address()
367 DHCP_LOGE("IsEui64ModeIpv6Address GetLocalInterface failed, ifaceName:%{public}s.", interfaceName.c_str()); in IsEui64ModeIpv6Address()
H A Ddhcp_client_state_machine.cpp249 if (GetLocalInterface(m_cltCnf.ifaceName, &m_cltCnf.ifaceIndex, m_cltCnf.ifaceMac, NULL) != DHCP_OPT_SUCCESS) { in GetClientNetworkInfo()
250 DHCP_LOGE("GetClientNetworkInfo() GetLocalInterface failed, ifaceName:%{public}s.", m_cltCnf.ifaceName); in GetClientNetworkInfo()
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_utils.cpp468 info.GetLocalInterface().c_str(), info.GetLocalLinkMode()); in ShowLinkInfoList()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/
H A Dwifi_direct_utils.cpp480 info.GetLocalInterface().c_str(), info.GetLocalLinkMode()); in ShowLinkInfoList()

Completed in 10 milliseconds