Home
last modified time | relevance | path

Searched refs:toIface (Results 1 - 20 of 20) sorted by relevance

/foundation/communication/netmanager_base/services/netmanagernative/src/manager/
H A Dsharing_manager.cpp271 int32_t SharingManager::IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdAddInterfaceForward() argument
274 if (fromIface == toIface) { in IpfwdAddInterfaceForward()
275 NETNATIVE_LOGE("Duplicate interface specified: %{public}s %{public}s", fromIface.c_str(), toIface.c_str()); in IpfwdAddInterfaceForward()
278 if (!(CommonUtils::CheckIfaceName(fromIface)) || !(CommonUtils::CheckIfaceName(toIface))) { in IpfwdAddInterfaceForward()
279 NETNATIVE_LOGE("iface name valid check fail: %{public}s %{public}s", fromIface.c_str(), toIface.c_str()); in IpfwdAddInterfaceForward()
282 NETNATIVE_LOGI("IpfwdAddInterfaceForward fromIface: %{public}s, toIface: %{public}s", fromIface.c_str(), in IpfwdAddInterfaceForward()
283 toIface.c_str()); in IpfwdAddInterfaceForward()
293 * ESTABLISED and from fromIface to toIface, goto tetherctrl_counters in IpfwdAddInterfaceForward()
295 if (SetForwardRules(true, SetTetherctrlForward1(toIface, fromIface))) { in IpfwdAddInterfaceForward()
300 * Add a forward rule, when the status is INVALID and from toIface t in IpfwdAddInterfaceForward()
347 IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) IpfwdRemoveInterfaceForward() argument
[all...]
/foundation/communication/netmanager_base/services/netmanagernative/include/manager/
H A Dsharing_manager.h73 * @param toIface
76 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface);
82 * @param toIface
85 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface);
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_manager_native.cpp380 int32_t NetManagerNative::IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdAddInterfaceForward() argument
382 return sharingManager_->IpfwdAddInterfaceForward(fromIface, toIface); in IpfwdAddInterfaceForward()
385 int32_t NetManagerNative::IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdRemoveInterfaceForward() argument
387 return sharingManager_->IpfwdRemoveInterfaceForward(fromIface, toIface); in IpfwdRemoveInterfaceForward()
/foundation/communication/netmanager_base/services/netsyscontroller/src/
H A Dnetsys_controller.cpp745 int32_t NetsysController::IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdAddInterfaceForward() argument
747 NETMGR_LOG_I("IpfwdAddInterfaceForward: fromIface[%{public}s], toIface[%{public}s]", fromIface.c_str(), in IpfwdAddInterfaceForward()
748 toIface.c_str()); in IpfwdAddInterfaceForward()
755 return netsysService_->IpfwdAddInterfaceForward(fromIface, toIface); in IpfwdAddInterfaceForward()
758 int32_t NetsysController::IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdRemoveInterfaceForward() argument
760 NETMGR_LOG_I("IpfwdRemoveInterfaceForward: fromIface[%{public}s], toIface[%{public}s]", fromIface.c_str(), in IpfwdRemoveInterfaceForward()
761 toIface.c_str()); in IpfwdRemoveInterfaceForward()
768 return netsysService_->IpfwdRemoveInterfaceForward(fromIface, toIface); in IpfwdRemoveInterfaceForward()
H A Dnetsys_controller_service_impl.cpp484 int32_t NetsysControllerServiceImpl::IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdAddInterfaceForward() argument
487 return netsysClient_.IpfwdAddInterfaceForward(fromIface, toIface); in IpfwdAddInterfaceForward()
491 const std::string &toIface) in IpfwdRemoveInterfaceForward()
494 return netsysClient_.IpfwdRemoveInterfaceForward(fromIface, toIface); in IpfwdRemoveInterfaceForward()
490 IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) IpfwdRemoveInterfaceForward() argument
H A Dnetsys_native_client.cpp833 int32_t NetsysNativeClient::IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdAddInterfaceForward() argument
840 return proxy->IpfwdAddInterfaceForward(fromIface, toIface); in IpfwdAddInterfaceForward()
843 int32_t NetsysNativeClient::IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdRemoveInterfaceForward() argument
845 NETMGR_LOG_D("NetsysNativeClient IpfwdRemoveInterfaceForward: fromIface[%{public}s], toIface[%{public}s]", in IpfwdRemoveInterfaceForward()
846 fromIface.c_str(), toIface.c_str()); in IpfwdRemoveInterfaceForward()
852 return proxy->IpfwdRemoveInterfaceForward(fromIface, toIface); in IpfwdRemoveInterfaceForward()
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Di_netsys_service.h129 virtual int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) = 0;
130 virtual int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) = 0;
H A Dnetsys_native_service_proxy.h95 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) override;
96 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) override;
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Dnet_manager_native.h110 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface);
111 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface);
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_distributed_test/
H A Dnetsys_native_service_stub_test.cpp301 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) override
306 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) override
/foundation/communication/netmanager_base/services/netsyscontroller/include/
H A Dnetsys_controller_service_impl.h456 * @param toIface the name of outcoming interface
459 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) override;
465 * @param toIface the name of outcoming interface
468 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) override;
H A Di_netsys_controller_service.h484 * @param toIface the name of outcoming interface
487 virtual int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) = 0;
493 * @param toIface the name of outcoming interface
496 virtual int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) = 0;
H A Dnetsys_controller.h471 * @param toIface the name of outcoming interface
474 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface);
480 * @param toIface the name of outcoming interface
483 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface);
H A Dnetsys_native_client.h496 * @param toIface the name of outcoming interface
499 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface);
505 * @param toIface the name of outcoming interface
508 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface);
/foundation/communication/netmanager_base/services/netmanagernative/src/
H A Dnetsys_native_service.cpp537 int32_t NetsysNativeService::IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdAddInterfaceForward() argument
540 return netsysService_->IpfwdAddInterfaceForward(fromIface, toIface); in IpfwdAddInterfaceForward()
543 int32_t NetsysNativeService::IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdRemoveInterfaceForward() argument
546 return netsysService_->IpfwdRemoveInterfaceForward(fromIface, toIface); in IpfwdRemoveInterfaceForward()
H A Dnetsys_native_service_stub.cpp1168 std::string toIface = data.ReadString(); in CmdIpfwdAddInterfaceForward() local
1169 int32_t result = IpfwdAddInterfaceForward(fromIface, toIface); in CmdIpfwdAddInterfaceForward()
1178 const auto &toIface = data.ReadString(); in CmdIpfwdRemoveInterfaceForward() local
1179 int32_t result = IpfwdRemoveInterfaceForward(fromIface, toIface); in CmdIpfwdRemoveInterfaceForward()
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Dnetsys_native_service_stub_test.cpp323 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) override
328 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) override
1220 std::string toIface = "testToIface"; in HWTEST_F() local
1229 if (!data.WriteString(toIface)) { in HWTEST_F()
H A Dnetsys_native_service_test.cpp372 std::string toIface = ""; in HWTEST_F() local
374 int32_t ret = instance_->IpfwdRemoveInterfaceForward(fromIface, toIface); in HWTEST_F()
/foundation/communication/netmanager_base/test/fuzztest/netsysclient_fuzzer/
H A Dnet_sys_client_fuzzer.cpp498 std::string toIface = NetSysGetString(STR_LEN); in IpfwdAddInterfaceForwardFuzzTest() local
501 dataParcel.WriteString(toIface); in IpfwdAddInterfaceForwardFuzzTest()
514 std::string toIface = NetSysGetString(STR_LEN); in IpfwdRemoveInterfaceForwardFuzzTest() local
517 dataParcel.WriteString(toIface); in IpfwdRemoveInterfaceForwardFuzzTest()
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/
H A Dnetsys_native_service_proxy.cpp1452 int32_t NetsysNativeServiceProxy::IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdAddInterfaceForward() argument
1455 if (!WriteInterfaceToken(data) || !data.WriteString(fromIface) || !data.WriteString(toIface)) { in IpfwdAddInterfaceForward()
1472 int32_t NetsysNativeServiceProxy::IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdRemoveInterfaceForward() argument
1475 if (!WriteInterfaceToken(data) || !data.WriteString(fromIface) || !data.WriteString(toIface)) { in IpfwdRemoveInterfaceForward()

Completed in 38 milliseconds