Home
last modified time | relevance | path

Searched refs:AddInterfaceAddress (Results 1 - 25 of 48) sorted by relevance

12

/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_ip_manager_test.cpp117 EXPECT_CALL(client, AddInterfaceAddress).WillOnce(Return(0)); in HWTEST_F()
123 EXPECT_CALL(client, AddInterfaceAddress).WillOnce(Return(-1)); in HWTEST_F()
127 EXPECT_CALL(client, AddInterfaceAddress).WillOnce(Return(0)); in HWTEST_F()
191 * @tc.desc: check AddInterfaceAddress method and DeleteInterfaceAddress method
204 EXPECT_CALL(client, AddInterfaceAddress(_, _, _)).WillOnce(Return(0)); in HWTEST_F()
207 int32_t ret = ipManager.AddInterfaceAddress(interface, ipString, prefixLength); in HWTEST_F()
210 EXPECT_CALL(client, AddInterfaceAddress(_, _, _)).WillOnce(Return(0)); in HWTEST_F()
212 ret = ipManager.AddInterfaceAddress(interface, ipString, prefixLength); in HWTEST_F()
215 EXPECT_CALL(client, AddInterfaceAddress(_, _, _)).WillOnce(Return(-1)); in HWTEST_F()
216 ret = ipManager.AddInterfaceAddress(interfac in HWTEST_F()
[all...]
H A Dnet_conn_client.h65 virtual int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength);
76 AddInterfaceAddress, int32_t(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength));
H A Dnet_conn_client.cpp57 int32_t OHOS::NetManagerStandard::NetConnClient::AddInterfaceAddress( in AddInterfaceAddress() function in OHOS::NetManagerStandard::NetConnClient
64 return mock->AddInterfaceAddress(ifName, ipAddr, prefixLength); in AddInterfaceAddress()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/
H A Dwifi_direct_ip_manager.cpp117 auto ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().AddInterfaceAddress(interface, ip, IPV6_PREFIX); in ConfigIpv6()
136 int32_t ret = AddInterfaceAddress(interface, localIpStr, local.GetPrefixLength()); in ConfigIpv4()
177 int32_t WifiDirectIpManager::AddInterfaceAddress( in AddInterfaceAddress() function in OHOS::SoftBus::WifiDirectIpManager
187 ret = OHOS::NetManagerStandard::NetConnClient::GetInstance().AddInterfaceAddress(interface, ipString, prefixLength); in AddInterfaceAddress()
H A Dwifi_direct_ip_manager.h76 static int32_t AddInterfaceAddress(const std::string &interface, const std::string &ipString, int32_t prefixLength);
/foundation/communication/netmanager_base/services/netsyscontroller/include/
H A Dmock_netsys_native_client.h43 constexpr const char *MOCK_INTERFACEADDADDRESS_API = "AddInterfaceAddress";
195 int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength);
H A Dnetsys_controller_service_impl.h183 int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) override;
H A Di_netsys_controller_service.h209 virtual int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) = 0;
/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_lan_management.cpp121 auto ret = NetConnClient::GetInstance().AddInterfaceAddress(newNetLinkInfo.ifaceName_, in SetIp()
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/
H A Dnet_conn_client.h402 int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr,
/foundation/communication/netmanager_base/test/netconnmanager/unittest/netmgr_distributed_test/
H A Dnet_conn_service_stub_test.h237 int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) override
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Dmock_netsys_native_client_test.cpp93 ret = nativeClient_.AddInterfaceAddress(iface, "", 0); in HWTEST_F()
H A Dnetsys_native_service_proxy_test.cpp108 ret = netsysNativeService->AddInterfaceAddress(INTERFACENAME, "192.168.113.209", 24); in HWTEST_F()
/foundation/communication/netmanager_base/interfaces/innerkits/netconnclient/include/proxy/
H A Dnet_conn_service_proxy.h80 int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr,
H A Di_net_conn_service.h90 virtual int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr,
/foundation/communication/netmanager_base/test/netmanagernative/unit_test/
H A Dnetwork_route.cpp201 int ret = netsysServiceR_->AddInterfaceAddress("eth0", "172.17.5.245", 23); in TestInterfaceAddAddress()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_service_test/
H A Dnet_conn_service_stub_test.h237 int32_t AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, int32_t prefixLength) override
/foundation/communication/netmanager_ext/services/wearabledistributednetmanager/src/
H A Dwearable_distributed_net_link_info.cpp314 if (NetsysController::GetInstance().AddInterfaceAddress(INTERFACE_DUMMY.c_str(), addr, prefixLen) != 0) { in SetInterfaceDummyUp()
/foundation/communication/netmanager_base/services/netsyscontroller/src/
H A Dnetsys_controller_service_impl.cpp211 int32_t NetsysControllerServiceImpl::AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in AddInterfaceAddress() function in OHOS::NetManagerStandard::NetsysControllerServiceImpl
217 return mockNetsysClient_.AddInterfaceAddress(ifName, ipAddr, prefixLength); in AddInterfaceAddress()
219 return netsysClient_.AddInterfaceAddress(ifName, ipAddr, prefixLength); in AddInterfaceAddress()
/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/
H A Dnet_conn_client.cpp779 int32_t NetConnClient::AddInterfaceAddress(const std::string &ifName, const std::string &ipAddr, in AddInterfaceAddress() function in OHOS::NetManagerStandard::NetConnClient
782 NETMGR_LOG_I("AddInterfaceAddress client in."); in AddInterfaceAddress()
789 return proxy->AddInterfaceAddress(ifName, ipAddr, prefixLength); in AddInterfaceAddress()
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Di_netsys_service.h99 virtual int32_t AddInterfaceAddress(const std::string &interfaceName, const std::string &addrString,
H A Dnetsys_native_service_proxy.h65 int32_t AddInterfaceAddress(const std::string &interfaceName, const std::string &addrString,
/foundation/communication/netmanager_base/services/netmanagernative/include/
H A Dnetsys_native_service.h89 int32_t AddInterfaceAddress(const std::string &interfaceName, const std::string &addrString,
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Dnet_manager_native.h89 int32_t AddInterfaceAddress(std::string ifName, std::string addrString, int32_t prefixLength);
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_distributed_test/
H A Dnetsys_native_service_stub_test.cpp171 int32_t AddInterfaceAddress(const std::string &interfaceName, const std::string &addrString,

Completed in 21 milliseconds

12