Home
last modified time | relevance | path

Searched refs:addFilter (Results 1 – 6 of 6) sorted by relevance

/base/customization/enterprise_device_management/services/edm_plugin/src/
Diptables_rule_plugin.cpp75 IPTABLES::AddFilter addFilter; in AddIptablesFilterRule() local
76 IPTABLES::IptablesUtils::ReadAddFilterConfig(addFilter, data); in AddIptablesFilterRule()
78 if (!ConvertAddFilterToIptablesCommand(addFilter, command)) { in AddIptablesFilterRule()
125 bool IptablesRulePlugin::ConvertAddFilterToIptablesCommand(const IPTABLES::AddFilter &addFilter, st… in ConvertAddFilterToIptablesCommand() argument
128 if (addFilter.method == IPTABLES::AddMethod::APPEND) { in ConvertAddFilterToIptablesCommand()
130 } else if (addFilter.method == IPTABLES::AddMethod::INSERT) { in ConvertAddFilterToIptablesCommand()
136 if (!ConvertChainCommand(addFilter.action, addFilter.direction, command)) { in ConvertAddFilterToIptablesCommand()
140 ConvertRuleNoCommand(addFilter.method, addFilter.ruleNo, command); in ConvertAddFilterToIptablesCommand()
141 ConvertProtocolCommand(addFilter.protocol, command); in ConvertAddFilterToIptablesCommand()
142 ConvertIpAddressCommand(addFilter.srcAddr, true, command); in ConvertAddFilterToIptablesCommand()
[all …]
/base/customization/enterprise_device_management/test/unittest/edm_plugin/src/
Diptables_rule_plugin_test.cpp97 IPTABLES::AddFilter addFilter; variable
100 IPTABLES::IptablesUtils::WriteAddFilterConfig(addFilter, data);
150 IPTABLES::AddFilter addFilter; variable
151 addFilter.action = IPTABLES::Action::DENY;
152 addFilter.direction = IPTABLES::Direction::INPUT;
153 addFilter.method = IPTABLES::AddMethod::INSERT;
154 addFilter.protocol = IPTABLES::Protocol::ICMP;
155 addFilter.ruleNo = 1;
156 addFilter.uid = "20230000";
157 addFilter.srcAddr = "192.192.192.192-202.202.202.202";
[all …]
/base/customization/enterprise_device_management/interfaces/kits/network_manager/include/
Dnetwork_manager_addon.h48 IPTABLES::AddFilter addFilter; member
83 …tic bool JsObjToAddFirewallObject(napi_env env, napi_value object, IPTABLES::AddFilter &addFilter);
/base/customization/enterprise_device_management/test/unittest/network_manager_proxy/network_manager_proxy_test/
Dnetwork_manager_proxy_test.cpp213 IPTABLES::AddFilter addFilter; variable
214 int32_t ret = networkManagerProxy->AddIptablesFilterRule(admin, addFilter);
228 IPTABLES::AddFilter addFilter; variable
229 int32_t ret = networkManagerProxy->AddIptablesFilterRule(admin, addFilter);
/base/customization/enterprise_device_management/services/edm_plugin/include/
Diptables_rule_plugin.h46 …bool ConvertAddFilterToIptablesCommand(const IPTABLES::AddFilter &addFilter, std::string &Command);
/base/customization/enterprise_device_management/interfaces/kits/network_manager/src/
Dnetwork_manager_addon.cpp373 …_PARAM_ERROR(env, JsObjToAddFirewallObject(env, argv[ARR_INDEX_ONE], asyncCallbackInfo->addFilter), in AddIptablesFilterRule()
426 asyncCallbackInfo->elementName, asyncCallbackInfo->addFilter); in NativeAddIptalbsFilterRule()