/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/ |
H A D | netfirewall_service_test.cpp | 101 localPortParam.endPort = LOCAL_END_PORT; in GetNetFirewallRuleSptr() 109 remotePortParam.endPort = REMOTE_END_PORT; in GetNetFirewallRuleSptr() 150 localPortParam.endPort = LOCAL_END_PORT; in GetNetFirewallRuleSptrTypeDns() 158 remotePortParam.endPort = REMOTE_END_PORT; in GetNetFirewallRuleSptrTypeDns()
|
H A D | netfirewall_client_test.cpp | 105 std::vector<NetFirewallPortParam> GetPortList(const uint16_t startPort, const uint16_t endPort) in GetPortList() argument 111 localPortParam.endPort = endPort; in GetPortList() 115 localPortParam.endPort += offset; in GetPortList()
|
H A D | netfirewall_service_stub_test.cpp | 68 localPortParam.endPort = localStartPort; in GetPortList() 72 localPortParam.endPort += offset; in GetPortList()
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_default_rule_parser.cpp | 203 cJSON *endPort = cJSON_GetObjectItem(mem, NET_FIREWALL_PORT_END.c_str()); in ConvertPortParamToConfig() local 204 if (endPort != nullptr && cJSON_IsNumber(endPort)) { in ConvertPortParamToConfig() 205 rule.endPort = static_cast<uint16_t>(cJSON_GetNumberValue(endPort)); in ConvertPortParamToConfig() 206 NETMGR_EXT_LOG_D("endPort = %{public}d", rule.endPort); in ConvertPortParamToConfig()
|
H A D | netfirewall_db_helper.cpp | 947 dbport.endPort = param.endPort;
in FirewallPortToDbPort() 959 dbport.endPort = param.endPort;
in DbPortToFirewallPort()
|
/foundation/communication/netmanager_ext/frameworks/js/napi/netfirewall/src/context/ |
H A D | net_firewall_param_check.cpp | 350 int32_t endPort = 0;
in CheckPortList() local 355 endPort = NapiUtils::GetInt32Property(env, valAttr, NET_FIREWALL_PORT_END);
in CheckPortList() 356 if (endPort > MAX_RULE_PORT || endPort < 0 || endPort < startPort) {
in CheckPortList()
|
H A D | net_firewall_rule_parse.cpp | 92 param.endPort = static_cast<uint16_t>(NapiUtils::GetUint32Property(env, valAttr, NET_FIREWALL_PORT_END));
in ParsePortList() 175 NapiUtils::SetUint32Property(env, element, NET_FIREWALL_PORT_END, static_cast<uint32_t>(iface.endPort));
in SetPortList()
|
/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/ |
H A D | netfirewall_client_test.cpp | 105 std::vector<NetFirewallPortParam> GetPortList(const uint16_t startPort, const uint16_t endPort)
in GetPortList() argument 111 localPortParam.endPort = endPort;
in GetPortList() 115 localPortParam.endPort += offset;
in GetPortList()
|
H A D | netfirewall_service_proxy_test.cpp | 85 localPortParam.endPort = LOCAL_END_PORT;
in GetNetFirewallRuleSptr() 90 remotePortParam.endPort = REMOTE_END_PORT;
in GetNetFirewallRuleSptr()
|
H A D | netfirewall_service_test.cpp | 105 localPortParam.endPort = LOCAL_END_PORT;
in GetNetFirewallRuleSptr() 113 remotePortParam.endPort = REMOTE_END_PORT;
in GetNetFirewallRuleSptr() 154 localPortParam.endPort = LOCAL_END_PORT;
in GetNetFirewallRuleSptrTypeDns() 162 remotePortParam.endPort = REMOTE_END_PORT;
in GetNetFirewallRuleSptrTypeDns()
|
H A D | netfirewall_service_stub_test.cpp | 68 localPortParam.endPort = localStartPort;
in GetPortList() 72 localPortParam.endPort += offset;
in GetPortList()
|
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | netfirewall_parcel.cpp | 134 if (!parcel.WriteUint16(endPort)) {
in Marshalling() 150 if (!parcel.ReadUint16(ptr->endPort)) {
in Unmarshalling()
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_netfirewall_test/ |
H A D | netsys_netfirewall_test.cpp | 63 remotePort.endPort = defaultPort; in GeIpFirewallRule()
|
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/ |
H A D | netfirewall_parcel.h | 70 const std::string NET_FIREWALL_PORT_END = "endPort";
145 uint16_t endPort; // When there is only one end port, the start port is the same as the end port. Optional
member
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/include/ |
H A D | netfirewall_db_helper.h | 91 uint16_t endPort;
member
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bitmap_manager.cpp | 289 if (item.startPort <= item.endPort) { in AddPortBitmap() 290 portMap.AddMap(item.startPort, item.endPort, bitmap); in AddPortBitmap()
|