Searched refs:ApplyRule (Results 1 - 3 of 3) sorted by relevance
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | wearable_distributed_net_manager.cpp | 276 int32_t WearableDistributedNet::ApplyRule(const RULES_TYPE type, const int32_t portId) in ApplyRule() function in OHOS::nmd::WearableDistributedNet 313 if (ApplyRule(TCP_ADD_RULE, GetTcpPort()) != NETMANAGER_SUCCESS) { in EstablishTcpIpRules() 327 if (ApplyRule(UDP_ADD_RULE, udpPortId) != NETMANAGER_SUCCESS) { in EstablishUdpIpRules() 341 if (ApplyRule(INPUT_DEL_RULE, GetTcpPort()) != NETMANAGER_SUCCESS) { in DisableWearableDistributedNetForward()
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/wearable_distributed_net_manager_test/ |
H A D | wearable_distributed_net_manager_test.cpp | 150 HWTEST_F(WearableDistributedNetManagerTest, ApplyRule, TestSize.Level1) in HWTEST_F() 155 int32_t result = net.ApplyRule(WearableDistributedNet::TCP_ADD_RULE, portId); in HWTEST_F() 179 int32_t result = net.ApplyRule(WearableDistributedNet::UDP_ADD_RULE, portId); in HWTEST_F() 188 int32_t result = net.ApplyRule(WearableDistributedNet::INPUT_ADD_RULE, portId); in HWTEST_F() 197 int32_t result = net.ApplyRule(WearableDistributedNet::INPUT_DEL_RULE, portId); in HWTEST_F() 205 int32_t result = net.ApplyRule(static_cast <WearableDistributedNet::RULES_TYPE>(100), portId); in HWTEST_F() 212 int32_t result = net.ApplyRule(WearableDistributedNet::TCP_ADD_RULE, -1); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | wearable_distributed_net_manager.h | 76 int32_t ApplyRule(const RULES_TYPE type, const int32_t portId);
|
Completed in 2 milliseconds