Home
last modified time | relevance | path

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

/foundation/communication/netmanager_base/frameworks/native/netmanagernative/
H A Dnetfirewall_parcel.cpp269 NetFirewallUtils::MarshallingList(localPorts, parcel); in Marshalling()
315 NetFirewallUtils::UnmarshallingList(parcel, ptr->localPorts); in Unmarshalling()
340 this->localPorts.size() << COMMA << NET_FIREWALL_DOMAIN << size << this->remotePorts.size() << COMMA << in ToString()
384 NetFirewallUtils::MarshallingList(localPorts, parcel); in Marshalling()
413 NetFirewallUtils::UnmarshallingList(parcel, ptr->localPorts); in Unmarshalling()
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_rule_manager.cpp301 rule->localPorts.assign(outRule.localPorts.begin(), outRule.localPorts.end()); in GetNetFirewallRule()
423 ipRule->localPorts = rule.localPorts; in ExtractIpRules()
H A Dnetfirewall_stub.cpp149 if (rule->localPorts.size() > MAX_RULE_PORT_COUNT || rule->remotePorts.size() > MAX_RULE_PORT_COUNT) { in OnAddNetFirewallRule()
191 if (rule->localPorts.size() > MAX_RULE_PORT_COUNT || rule->remotePorts.size() > MAX_RULE_PORT_COUNT) { in OnUpdateNetFirewallRule()
H A Dnetfirewall_default_rule_parser.cpp81 ParsePortList(rule->localPorts, mem, NET_FIREWALL_LOCAL_PORT); in ParseListObject()
H A Dnetfirewall_db_helper.cpp168 FirewallPortToDbPort(rule.localPorts, dbPorts); in FillValuesOfFirewallRule()
443 DbPortToFirewallPort(dbPorts, info.localPorts); in GetRuleListParamFromResultSet()
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dnetfirewall_service_test.cpp105 rule->localPorts = localPortParamList; in GetNetFirewallRuleSptr()
154 rule->localPorts = localPortParamList; in GetNetFirewallRuleSptrTypeDns()
H A Dnetfirewall_client_test.cpp155 rule->localPorts = GetPortList(LOCAL_START_PORT, LOCAL_END_PORT); in GetNetFirewallRuleSptr()
196 rule->localPorts = GetPortList(LOCAL_START_PORT, LOCAL_START_PORT); in GetNetFirewallIpV4RuleSptr()
H A Dnetfirewall_service_stub_test.cpp96 rule->localPorts = GetPortList(portNum); in GetNetFirewallRuleSptr()
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Dnetfirewall_parcel.h58 const std::string NET_FIREWALL_LOCAL_PORT = "localPorts";
192 std::vector<NetFirewallPortParam> localPorts; member
225 std::vector<NetFirewallPortParam> localPorts; // Local port, optional member
/foundation/communication/netmanager_ext/frameworks/js/napi/netfirewall/src/context/
H A Dnet_firewall_rule_parse.cpp134 ParsePortList(env, NapiUtils::GetNamedProperty(env, object, NET_FIREWALL_LOCAL_PORT), rule->localPorts); in ParseRuleParams()
211 SetPortList(env, object, NET_FIREWALL_LOCAL_PORT, rule.localPorts); in SetRuleParams()
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_netfirewall_test/
H A Dnetsys_netfirewall_test.cpp65 rule->localPorts = ports; in GeIpFirewallRule()
/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/
H A Dnetfirewall_client_test.cpp155 rule->localPorts = GetPortList(LOCAL_START_PORT, LOCAL_END_PORT); in GetNetFirewallRuleSptr()
196 rule->localPorts = GetPortList(LOCAL_START_PORT, LOCAL_START_PORT); in GetNetFirewallIpV4RuleSptr()
H A Dnetfirewall_service_proxy_test.cpp86 rule->localPorts.push_back(localPortParam); in GetNetFirewallRuleSptr()
H A Dnetfirewall_service_test.cpp109 rule->localPorts = localPortParamList; in GetNetFirewallRuleSptr()
158 rule->localPorts = localPortParamList; in GetNetFirewallRuleSptrTypeDns()
H A Dnetfirewall_service_stub_test.cpp96 rule->localPorts = GetPortList(portNum); in GetNetFirewallRuleSptr()
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbitmap_manager.cpp315 AddPortBitmap(rule->localPorts, bitmap, dstPortMap); in BuildMarkBitmap()
359 if (rule->localPorts.empty() || IsNotNeedPort(rule->protocol)) { in BuildNoMarkBitmap()

Completed in 14 milliseconds