Searched refs:NET_FIREWALL_IP_FAMILY (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/ |
H A D | netfirewall_default_rule_parser_test.cpp | 60 cJSON_AddStringToObject(ip, NET_FIREWALL_IP_FAMILY.c_str(), "1"); 101 cJSON_AddNumberToObject(root, NET_FIREWALL_IP_FAMILY.c_str(), FAMILY_IPV6); 113 cJSON_AddNumberToObject(root, NET_FIREWALL_IP_FAMILY.c_str(), FAMILY_IPV4); 125 cJSON_AddNumberToObject(root, NET_FIREWALL_IP_FAMILY.c_str(), FAMILY_IPV4); 138 cJSON_AddNumberToObject(root, NET_FIREWALL_IP_FAMILY.c_str(), FAMILY_IPV6);
|
/ohos5.0/foundation/communication/netmanager_ext/frameworks/js/napi/netfirewall/src/context/ |
H A D | net_firewall_param_check.cpp | 291 if (NapiUtils::HasNamedProperty(env, valAttr, NET_FIREWALL_IP_FAMILY)) { in CheckIpList() 292 …(NapiUtils::GetValueType(env, NapiUtils::GetNamedProperty(env, valAttr, NET_FIREWALL_IP_FAMILY)) != in CheckIpList() 296 family = NapiUtils::GetInt32Property(env, valAttr, NET_FIREWALL_IP_FAMILY); in CheckIpList()
|
H A D | net_firewall_rule_parse.cpp | 38 ….family = static_cast<uint8_t>(NapiUtils::GetUint32Property(env, valAttr, NET_FIREWALL_IP_FAMILY)); in ParseIpList() 153 …NapiUtils::SetUint32Property(env, element, NET_FIREWALL_IP_FAMILY, static_cast<uint32_t>(iface.fam… in SetIpList()
|
/ohos5.0/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/ |
H A D | netfirewall_parcel.h | 63 const std::string NET_FIREWALL_IP_FAMILY = "family"; variable
|
/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_default_rule_parser.cpp | 150 cJSON *family = cJSON_GetObjectItem(mem, NET_FIREWALL_IP_FAMILY.c_str()); in ConvertIpParamToConfig()
|