Home
last modified time | relevance | path

Searched refs:NetworkInterface (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dnetwork_interface_test.cpp95 NetworkInterface::Dump("wlan0");
107 EXPECT_FALSE(NetworkInterface::GetIpv4Address("test", vecIPv4));
108 NetworkInterface::GetIpv4Address("lo", vecIPv4);
136 NetworkInterface::IsExistAddressForInterface("lo", address2);
138 NetworkInterface::IsExistAddressForInterface("lo", address3);
150 EXPECT_FALSE(NetworkInterface::AddIpAddress("test", address1));
152 EXPECT_FALSE(NetworkInterface::AddIpAddress("test", address2));
166 EXPECT_TRUE(NetworkInterface::DelIpAddress("test", address2));
167 NetworkInterface::DelIpAddress("lo", address2);
178 EXPECT_FALSE(NetworkInterface::ClearAllIpAddress("test"));
[all …]
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Dnetwork_interface.cpp37 bool NetworkInterface::IsValidInterfaceName(const std::string &interfaceName) in IsValidInterfaceName()
59 void NetworkInterface::Dump(const std::string &interfaceName) in Dump()
82 bool NetworkInterface::FetchInterfaceConfig( in FetchInterfaceConfig()
140 bool NetworkInterface::AddIpAddress(const std::string &interfaceName, const BaseAddress &ipAddress) in AddIpAddress()
164 bool NetworkInterface::DelIpAddress(const std::string &interfaceName, const BaseAddress &ipAddress) in DelIpAddress()
186 bool NetworkInterface::ClearAllIpAddress(const std::string &interfaceName) in ClearAllIpAddress()
206 bool NetworkInterface::SaveIpAddress( in SaveIpAddress()
251 bool NetworkInterface::FetchIpAddress( in FetchIpAddress()
282 bool NetworkInterface::FetchApOrP2pIpAddress( in FetchApOrP2pIpAddress()
319 bool NetworkInterface::IpAddressChange( in IpAddressChange()
[all …]
H A Ddhcpd_interface.cpp60 if (!NetworkInterface::FetchApOrP2pIpAddress(ifaceName, vecIpv4Addr, vecIpv6Addr)) { in StartDhcpServerFromInterface()
159 if (!NetworkInterface::ClearAllIpAddress(ifaceName)) { in StopDhcp()
167 bool ret = NetworkInterface::AddIpAddress(ifaceName, ipv4); in ApplyIpAddress()
169 ret |= NetworkInterface::AddIpAddress(ifaceName, ipv6); in ApplyIpAddress()
H A Dnetwork_interface.h29 namespace NetworkInterface {
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/include/
H A Dnetwork_mock.h41 class NetworkInterface {
43 NetworkInterface() {}; in NetworkInterface() function
44 virtual ~NetworkInterface() {}; in ~NetworkInterface()
61 class NetworkInterfaceMock : public NetworkInterface {
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap/
H A Dwifi_ap_nat_manager.cpp47 if (!NetworkInterface::IsValidInterfaceName(inInterfaceName) || in EnableInterfaceNat()
48 !NetworkInterface::IsValidInterfaceName(outInterfaceName)) { in EnableInterfaceNat()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/src/
H A Dnetwork_mock.cpp35 static NetworkInterface *GetNetworkInterface() in GetNetworkInterface()
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_ap/Mock/
H A Dmock_network_interface.cpp20 namespace NetworkInterface { namespace