Home
last modified time | relevance | path

Searched refs:localIps (Results 1 - 17 of 17) sorted by relevance

/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/
H A Dnetfirewall_default_rule_parser_test.cpp58 cJSON *localIps = cJSON_CreateArray(); in HWTEST_F() local
64 cJSON_AddItemToArray(localIps, ip); in HWTEST_F()
65 cJSON_AddItemToObject(root, NET_FIREWALL_LOCAL_IP.c_str(), localIps); in HWTEST_F()
H A Dnetfirewall_service_test.cpp96 rule->localIps = GetIpList("192.168.10."); in GetNetFirewallRuleSptr()
144 rule->localIps = GetIpList("192.168.10."); in GetNetFirewallRuleSptrTypeDns()
H A Dnetfirewall_client_test.cpp151 rule->localIps = GetIpList("AA22:BB11:1122:CDEF:1111:AA99:8888:", type); in GetNetFirewallRuleSptr()
192 rule->localIps = GetIpList("192.168.1.", type, FAMILY_IPV4); in GetNetFirewallIpV4RuleSptr()
H A Dnetfirewall_service_stub_test.cpp95 rule->localIps = GetIpList(number); in GetNetFirewallRuleSptr()
/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/
H A Dnetfirewall_default_rule_parser_test.cpp58 cJSON *localIps = cJSON_CreateArray(); in HWTEST_F() local
64 cJSON_AddItemToArray(localIps, ip); in HWTEST_F()
65 cJSON_AddItemToObject(root, NET_FIREWALL_LOCAL_IP.c_str(), localIps); in HWTEST_F()
H A Dnetfirewall_client_test.cpp151 rule->localIps = GetIpList("AA22:BB11:1122:CDEF:1111:AA99:8888:", type); in GetNetFirewallRuleSptr()
192 rule->localIps = GetIpList("192.168.1.", type, FAMILY_IPV4); in GetNetFirewallIpV4RuleSptr()
H A Dnetfirewall_service_proxy_test.cpp74 rule->localIps.push_back(localParam); in GetNetFirewallRuleSptr()
H A Dnetfirewall_service_test.cpp100 rule->localIps = GetIpList("192.168.10."); in GetNetFirewallRuleSptr()
148 rule->localIps = GetIpList("192.168.10."); in GetNetFirewallRuleSptrTypeDns()
H A Dnetfirewall_service_stub_test.cpp95 rule->localIps = GetIpList(number); in GetNetFirewallRuleSptr()
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/
H A Dnetfirewall_parcel.cpp266 NetFirewallUtils::MarshallingList(localIps, parcel); in Marshalling()
309 NetFirewallUtils::UnmarshallingList(parcel, ptr->localIps); in Unmarshalling()
338 this->userId << COMMA << NET_FIREWALL_LOCAL_IP << size << this->localIps.size() << COMMA << in ToString()
382 NetFirewallUtils::MarshallingList(localIps, parcel); in Marshalling()
411 NetFirewallUtils::UnmarshallingList(parcel, ptr->localIps); in Unmarshalling()
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_rule_manager.cpp299 rule->localIps.assign(outRule.localIps.begin(), outRule.localIps.end()); in GetNetFirewallRule()
420 ipRule->localIps = rule.localIps; in ExtractIpRules()
H A Dnetfirewall_stub.cpp144 if (rule->localIps.size() > MAX_RULE_IP_COUNT || rule->remoteIps.size() > MAX_RULE_IP_COUNT) { in OnAddNetFirewallRule()
186 if (rule->localIps.size() > MAX_RULE_IP_COUNT || rule->remoteIps.size() > MAX_RULE_IP_COUNT) { in OnUpdateNetFirewallRule()
H A Dnetfirewall_default_rule_parser.cpp79 ParseIpList(rule->localIps, mem, NET_FIREWALL_LOCAL_IP); in ParseListObject()
H A Dnetfirewall_db_helper.cpp160 FirewallIpToDbIp(rule.localIps, dbIPs); in FillValuesOfFirewallRule()
435 DbIpToFirewallIp(dbIPs, info.localIps); in GetRuleListParamFromResultSet()
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/
H A Dnetfirewall_parcel.h55 const std::string NET_FIREWALL_LOCAL_IP = "localIps";
190 std::vector<NetFirewallIpParam> localIps; member
222 std::vector<NetFirewallIpParam> localIps; // Local IP address, optional member
/foundation/communication/netmanager_ext/frameworks/js/napi/netfirewall/src/context/
H A Dnet_firewall_rule_parse.cpp131 ParseIpList(env, NapiUtils::GetNamedProperty(env, object, NET_FIREWALL_LOCAL_IP), rule->localIps); in ParseRuleParams()
208 SetIpList(env, object, NET_FIREWALL_LOCAL_IP, rule.localIps); in SetRuleParams()
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbitmap_manager.cpp308 ret = InsertIpBitmap(rule->localIps, false, bitmap); in BuildMarkBitmap()
310 NETNATIVE_LOGW("BuildMarkBitmap InsertIpBitmap localIps fail ret=%{public}d", ret); in BuildMarkBitmap()
352 if (rule->localIps.empty()) { in BuildNoMarkBitmap()

Completed in 18 milliseconds