Home
last modified time | relevance | path

Searched refs:endPort (Results 1 - 16 of 16) sorted by relevance

/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dnetfirewall_service_test.cpp101 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 Dnetfirewall_client_test.cpp105 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 Dnetfirewall_service_stub_test.cpp68 localPortParam.endPort = localStartPort; in GetPortList()
72 localPortParam.endPort += offset; in GetPortList()
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_default_rule_parser.cpp203 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 Dnetfirewall_db_helper.cpp947 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 Dnet_firewall_param_check.cpp350 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 Dnet_firewall_rule_parse.cpp92 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 Dnetfirewall_client_test.cpp105 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 Dnetfirewall_service_proxy_test.cpp85 localPortParam.endPort = LOCAL_END_PORT; in GetNetFirewallRuleSptr()
90 remotePortParam.endPort = REMOTE_END_PORT; in GetNetFirewallRuleSptr()
H A Dnetfirewall_service_test.cpp105 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 Dnetfirewall_service_stub_test.cpp68 localPortParam.endPort = localStartPort; in GetPortList()
72 localPortParam.endPort += offset; in GetPortList()
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/
H A Dnetfirewall_parcel.cpp134 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 Dnetsys_netfirewall_test.cpp63 remotePort.endPort = defaultPort; in GeIpFirewallRule()
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Dnetfirewall_parcel.h70 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 Dnetfirewall_db_helper.h91 uint16_t endPort; member
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbitmap_manager.cpp289 if (item.startPort <= item.endPort) { in AddPortBitmap()
290 portMap.AddMap(item.startPort, item.endPort, bitmap); in AddPortBitmap()

Completed in 16 milliseconds