Home
last modified time | relevance | path

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 Dnetfirewall_default_rule_parser_test.cpp60 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 Dnet_firewall_param_check.cpp291 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 Dnet_firewall_rule_parse.cpp38 ….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 Dnetfirewall_parcel.h63 const std::string NET_FIREWALL_IP_FAMILY = "family"; variable
/ohos5.0/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_default_rule_parser.cpp150 cJSON *family = cJSON_GetObjectItem(mem, NET_FIREWALL_IP_FAMILY.c_str()); in ConvertIpParamToConfig()