/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | sharing_manager.cpp | 271 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() 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 to fromIface, jus in IpfwdAddInterfaceForward() 347 IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) IpfwdRemoveInterfaceForward() argument [all...] |
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | sharing_manager_test.cpp | 117 const std::string fromIface = "_err"; in HWTEST_F() local 118 ret = sharingManager->IpfwdAddInterfaceForward(fromIface, enableAction); in HWTEST_F() 136 const std::string fromIface = "_err"; in HWTEST_F() local 137 ret = sharingManager->IpfwdRemoveInterfaceForward(fromIface, enableAction); in HWTEST_F()
|
H A D | netsys_native_service_stub_test.cpp | 323 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 1219 std::string fromIface = "testFromIface"; in HWTEST_F() local 1226 if (!data.WriteString(fromIface)) { in HWTEST_F()
|
H A D | netsys_native_service_test.cpp | 371 std::string fromIface = ""; in HWTEST_F() local 374 int32_t ret = instance_->IpfwdRemoveInterfaceForward(fromIface, toIface); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netmanagernative/include/manager/ |
H A D | sharing_manager.h | 72 * @param fromIface 76 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface); 81 * @param fromIface 85 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface);
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | net_manager_native.cpp | 380 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 D | netsys_controller.cpp | 745 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() 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() 768 return netsysService_->IpfwdRemoveInterfaceForward(fromIface, toIface); in IpfwdRemoveInterfaceForward()
|
H A D | netsys_controller_service_impl.cpp | 484 int32_t NetsysControllerServiceImpl::IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) in IpfwdAddInterfaceForward() argument 487 return netsysClient_.IpfwdAddInterfaceForward(fromIface, toIface); in IpfwdAddInterfaceForward() 490 int32_t NetsysControllerServiceImpl::IpfwdRemoveInterfaceForward(const std::string &fromIface, in IpfwdRemoveInterfaceForward() argument 494 return netsysClient_.IpfwdRemoveInterfaceForward(fromIface, toIface); in IpfwdRemoveInterfaceForward()
|
H A D | netsys_native_client.cpp | 833 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 D | i_netsys_service.h | 129 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 D | netsys_native_service_proxy.h | 95 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/ |
H A D | netsys_native_service.h | 119 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toiIface) override; 120 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toiIface) override;
|
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | net_manager_native.h | 110 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 D | netsys_native_service_stub_test.cpp | 301 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 D | netsys_controller_service_impl.h | 455 * @param fromIface the name of incoming interface 459 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) override; 464 * @param fromIface the name of incoming interface 468 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) override;
|
H A D | i_netsys_controller_service.h | 483 * @param fromIface the name of incoming interface 487 virtual int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface) = 0; 492 * @param fromIface the name of incoming interface 496 virtual int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface) = 0;
|
H A D | netsys_controller.h | 470 * @param fromIface the name of incoming interface 474 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface); 479 * @param fromIface the name of incoming interface 483 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface);
|
H A D | netsys_native_client.h | 495 * @param fromIface the name of incoming interface 499 int32_t IpfwdAddInterfaceForward(const std::string &fromIface, const std::string &toIface); 504 * @param fromIface the name of incoming interface 508 int32_t IpfwdRemoveInterfaceForward(const std::string &fromIface, const std::string &toIface);
|
/foundation/communication/netmanager_base/services/netmanagernative/src/ |
H A D | netsys_native_service.cpp | 537 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 D | netsys_native_service_stub.cpp | 1167 std::string fromIface = data.ReadString(); in CmdIpfwdAddInterfaceForward() local 1169 int32_t result = IpfwdAddInterfaceForward(fromIface, toIface); in CmdIpfwdAddInterfaceForward() 1177 const auto &fromIface = data.ReadString(); in CmdIpfwdRemoveInterfaceForward() local 1179 int32_t result = IpfwdRemoveInterfaceForward(fromIface, toIface); in CmdIpfwdRemoveInterfaceForward()
|
/foundation/communication/netmanager_base/test/fuzztest/netsysclient_fuzzer/ |
H A D | net_sys_client_fuzzer.cpp | 497 std::string fromIface = NetSysGetString(STR_LEN); in IpfwdAddInterfaceForwardFuzzTest() local 500 dataParcel.WriteString(fromIface); in IpfwdAddInterfaceForwardFuzzTest() 513 std::string fromIface = NetSysGetString(STR_LEN); in IpfwdRemoveInterfaceForwardFuzzTest() local 516 dataParcel.WriteString(fromIface); in IpfwdRemoveInterfaceForwardFuzzTest()
|
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | netsys_native_service_proxy.cpp | 1452 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()
|