/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_default_rule_parser.cpp | 89 cJSON *ips = cJSON_GetObjectItem(mem, jsonKey.c_str()); in ParseIpList() local 90 if (ips != nullptr && cJSON_IsArray(ips)) { in ParseIpList() 91 int itemSize = cJSON_GetArraySize(ips); in ParseIpList() 93 cJSON *item = cJSON_GetArrayItem(ips, i); in ParseIpList()
|
H A D | netfirewall_db_helper.cpp | 904 void NetFirewallDbHelper::FirewallIpToDbIp(const std::vector<NetFirewallIpParam> &ips, std::vector<DataBaseIp> &dbips)
in FirewallIpToDbIp() argument 908 for (const NetFirewallIpParam ¶m : ips) {
in FirewallIpToDbIp() 922 void NetFirewallDbHelper::DbIpToFirewallIp(const std::vector<DataBaseIp> &dbips, std::vector<NetFirewallIpParam> &ips)
in DbIpToFirewallIp() argument 924 ips.clear();
in DbIpToFirewallIp() 937 ips.emplace_back(std::move(dbip));
in DbIpToFirewallIp()
|
/foundation/communication/netstack/test/unittest/tls_test/server/ |
H A D | tls_socket_server_branch_test.cpp | 585 std::vector<std::string> &ips, const X509 *x509Certificates, 592 std::vector<std::string> ips = {"192.168.1.1", "192.168.1.2"}; in HWTEST_F() local 595 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result); in HWTEST_F() 605 std::vector<std::string> ips = {"192.168.1.1", "192.168.1.2"}; in HWTEST_F() local 608 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result); in HWTEST_F() 620 std::vector<std::string> ips = {"192.168.1.1", "192.168.1.2"}; in HWTEST_F() local 623 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result); in HWTEST_F()
|
/foundation/communication/netstack/test/unittest/tlssocket/server/ |
H A D | tls_socket_server_branch_test.cpp | 585 std::vector<std::string> &ips, const X509 *x509Certificates, 592 std::vector<std::string> ips = {"192.168.1.1", "192.168.1.2"}; in HWTEST_F() local 595 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result); in HWTEST_F() 605 std::vector<std::string> ips = {"192.168.1.1", "192.168.1.2"}; in HWTEST_F() local 608 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result); in HWTEST_F() 620 std::vector<std::string> ips = {"192.168.1.1", "192.168.1.2"}; in HWTEST_F() local 623 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/ |
H A D | bitmap_manager.cpp | 192 std::vector<Ip4Data> ips; in InsertIp4SegBitmap() local 193 int32_t ret = IpParamParser::GetIp4AndMask(item.ipv4.startIp, item.ipv4.endIp, ips); in InsertIp4SegBitmap() 197 for (auto &ipData : ips) { in InsertIp4SegBitmap() 217 std::vector<Ip6Data> ips; in InsertIp6SegBitmap() local 218 int32_t ret = IpParamParser::GetIp6AndMask(item.ipv6.startIp, item.ipv6.endIp, ips); in InsertIp6SegBitmap() 223 for (auto &ipData : ips) { in InsertIp6SegBitmap()
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/include/ |
H A D | netfirewall_db_helper.h | 327 void FirewallIpToDbIp(const std::vector<NetFirewallIpParam> &ips, std::vector<DataBaseIp> &dbips);
328 void DbIpToFirewallIp(const std::vector<DataBaseIp> &dbips, std::vector<NetFirewallIpParam> &ips);
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_ap_sa/ |
H A D | wifi_hotspot_service_impl.cpp | 910 std::vector ips = {"0.0.0.0", "255.255.255.255", "127.0.0.0"}; in CfgCheckIpAddress() local 911 if (std::find(ips.begin(), ips.end(), ipAddress) != ips.end()) { in CfgCheckIpAddress()
|
/foundation/communication/netstack/frameworks/js/napi/tls/src/ |
H A D | tls_socket.cpp | 1540 void CheckIpAndDnsName(const std::string &hostName, std::vector<std::string> dnsNames, std::vector<std::string> ips, in CheckIpAndDnsName() argument 1547 auto it = find(ips.begin(), ips.end(), hostName); in CheckIpAndDnsName() 1548 if (it == ips.end()) { in CheckIpAndDnsName() 1625 std::vector<std::string> ips = {}; in CheckServerIdentityLegal() local 1639 ips.push_back(iter.substr(IP_NAME_IDX)); in CheckServerIdentityLegal() 1644 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result); in CheckServerIdentityLegal()
|
H A D | tls_socket_server.cpp | 1145 void CheckIpAndDnsName(const std::string &hostName, std::vector<std::string> &dnsNames, std::vector<std::string> &ips,
in CheckIpAndDnsName() argument 1152 auto it = find(ips.begin(), ips.end(), hostName);
in CheckIpAndDnsName() 1153 if (it == ips.end()) {
in CheckIpAndDnsName() 1231 std::vector<std::string> ips = {};
in CheckServerIdentityLegal() local 1245 ips.push_back(iter.substr(IP_NAME_IDX));
in CheckServerIdentityLegal() 1250 CheckIpAndDnsName(hostName, dnsNames, ips, x509Certificates, result);
in CheckServerIdentityLegal()
|