/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | netfirewall_parcel.cpp | 269 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 D | netfirewall_rule_manager.cpp | 301 rule->localPorts.assign(outRule.localPorts.begin(), outRule.localPorts.end()); in GetNetFirewallRule() 423 ipRule->localPorts = rule.localPorts; in ExtractIpRules()
|
H A D | netfirewall_stub.cpp | 149 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 D | netfirewall_default_rule_parser.cpp | 81 ParsePortList(rule->localPorts, mem, NET_FIREWALL_LOCAL_PORT); in ParseListObject()
|
H A D | netfirewall_db_helper.cpp | 168 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 D | netfirewall_service_test.cpp | 105 rule->localPorts = localPortParamList; in GetNetFirewallRuleSptr() 154 rule->localPorts = localPortParamList; in GetNetFirewallRuleSptrTypeDns()
|
H A D | netfirewall_client_test.cpp | 155 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 D | netfirewall_service_stub_test.cpp | 96 rule->localPorts = GetPortList(portNum); in GetNetFirewallRuleSptr()
|
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/ |
H A D | netfirewall_parcel.h | 58 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 D | net_firewall_rule_parse.cpp | 134 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 D | netsys_netfirewall_test.cpp | 65 rule->localPorts = ports; in GeIpFirewallRule()
|
/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/ |
H A D | netfirewall_client_test.cpp | 155 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 D | netfirewall_service_proxy_test.cpp | 86 rule->localPorts.push_back(localPortParam);
in GetNetFirewallRuleSptr()
|
H A D | netfirewall_service_test.cpp | 109 rule->localPorts = localPortParamList;
in GetNetFirewallRuleSptr() 158 rule->localPorts = localPortParamList;
in GetNetFirewallRuleSptrTypeDns()
|
H A D | netfirewall_service_stub_test.cpp | 96 rule->localPorts = GetPortList(portNum);
in GetNetFirewallRuleSptr()
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bitmap_manager.cpp | 315 AddPortBitmap(rule->localPorts, bitmap, dstPortMap); in BuildMarkBitmap() 359 if (rule->localPorts.empty() || IsNotNeedPort(rule->protocol)) { in BuildNoMarkBitmap()
|