Searched refs:IPTABLES (Results 1 – 10 of 10) sorted by relevance
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
D | iptables_rule_plugin.cpp | 75 IPTABLES::AddFilter addFilter; in AddIptablesFilterRule() 76 IPTABLES::IptablesUtils::ReadAddFilterConfig(addFilter, data); in AddIptablesFilterRule() 91 IPTABLES::RemoveFilter removeFilter; in RemoveIptablesFilterRule() 92 IPTABLES::IptablesUtils::ReadRemoveFilterConfig(removeFilter, data); in RemoveIptablesFilterRule() 125 bool IptablesRulePlugin::ConvertAddFilterToIptablesCommand(const IPTABLES::AddFilter &addFilter, st… in ConvertAddFilterToIptablesCommand() 128 if (addFilter.method == IPTABLES::AddMethod::APPEND) { in ConvertAddFilterToIptablesCommand() 130 } else if (addFilter.method == IPTABLES::AddMethod::INSERT) { in ConvertAddFilterToIptablesCommand() 150 ErrCode IptablesRulePlugin::ExecRemoveFilterIptablesCommand(const IPTABLES::RemoveFilter &removeFil… in ExecRemoveFilterIptablesCommand() 152 if (removeFilter.direction == IPTABLES::Direction::INVALID) { in ExecRemoveFilterIptablesCommand() 156 ….destPort.empty() && removeFilter.uid.empty() && removeFilter.action == IPTABLES::Action::INVALID … in ExecRemoveFilterIptablesCommand() [all …]
|
/base/customization/enterprise_device_management/test/unittest/edm_plugin/src/ |
D | iptables_rule_plugin_test.cpp | 53 IPTABLES::RemoveFilter removeFilter; in ResetIptablesRule() 54 removeFilter.direction = IPTABLES::Direction::INPUT; in ResetIptablesRule() 57 IPTABLES::IptablesUtils::WriteRemoveFilterConfig(removeFilter, removeData); in ResetIptablesRule() 65 IPTABLES::RemoveFilter remoutOutFilter; in ResetIptablesRule() 66 remoutOutFilter.direction = IPTABLES::Direction::OUTPUT; in ResetIptablesRule() 68 IPTABLES::IptablesUtils::WriteRemoveFilterConfig(remoutOutFilter, removeOutData); in ResetIptablesRule() 97 IPTABLES::AddFilter addFilter; 100 IPTABLES::IptablesUtils::WriteAddFilterConfig(addFilter, data); 116 IPTABLES::RemoveFilter filter; 119 IPTABLES::IptablesUtils::WriteRemoveFilterConfig(filter, data); [all …]
|
/base/customization/enterprise_device_management/services/edm_plugin/include/ |
D | iptables_rule_plugin.h | 46 …bool ConvertAddFilterToIptablesCommand(const IPTABLES::AddFilter &addFilter, std::string &Command); 47 ErrCode ExecRemoveFilterIptablesCommand(const IPTABLES::RemoveFilter &removeFilter); 48 ErrCode ExecRemoveFilterBySimpleCommand(const IPTABLES::Direction &direction); 49 ErrCode ExecRemoveFilterByDetailedCommand(const IPTABLES::RemoveFilter &removeFilter); 50 bool ConvertChainCommand(const IPTABLES::Action &action, const IPTABLES::Direction &direction, 54 void ConvertProtocolCommand(const IPTABLES::Protocol &protocol, std::string &Command); 55 bool ConvertActionCommand(const IPTABLES::Action &action, std::string &Command); 56 …void ConvertRuleNoCommand(const IPTABLES::AddMethod &method, uint32_t ruleNo, std::string &Command…
|
/base/customization/enterprise_device_management/interfaces/kits/network_manager/include/ |
D | network_manager_addon.h | 48 IPTABLES::AddFilter addFilter; 49 IPTABLES::RemoveFilter removeFilter; 83 …static bool JsObjToAddFirewallObject(napi_env env, napi_value object, IPTABLES::AddFilter &addFilt… 84 …static bool JsObjToRemoveFirewallObject(napi_env env, napi_value object, IPTABLES::RemoveFilter &r…
|
/base/customization/enterprise_device_management/interfaces/inner_api/network_manager/include/ |
D | network_manager_proxy.h | 37 …int32_t AddIptablesFilterRule(const AppExecFwk::ElementName &admin, const IPTABLES::AddFilter &fil… 38 …int32_t RemoveIptablesFilterRule(const AppExecFwk::ElementName &admin, const IPTABLES::RemoveFilte…
|
/base/customization/enterprise_device_management/interfaces/kits/network_manager/src/ |
D | network_manager_addon.cpp | 31 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Action::ALLOW), &… in CreateFirewallActionObject() 34 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Action::DENY), &n… in CreateFirewallActionObject() 41 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Protocol::ALL), &… in CreateFirewallProtocolObject() 44 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Protocol::TCP), &… in CreateFirewallProtocolObject() 47 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Protocol::UDP), &… in CreateFirewallProtocolObject() 50 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Protocol::ICMP), … in CreateFirewallProtocolObject() 57 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Direction::INPUT)… in CreateFirewallDirectionObject() 60 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Direction::OUTPUT… in CreateFirewallDirectionObject() 67 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::AddMethod::APPEND… in CreateFirewallAddMethodObject() 70 …NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::AddMethod::INSERT… in CreateFirewallAddMethodObject() [all …]
|
/base/customization/enterprise_device_management/interfaces/inner_api/network_manager/src/ |
D | network_manager_proxy.cpp | 153 const IPTABLES::AddFilter &filter) in AddIptablesFilterRule() 161 IPTABLES::IptablesUtils::WriteAddFilterConfig(filter, data); in AddIptablesFilterRule() 166 const IPTABLES::RemoveFilter &filter) in RemoveIptablesFilterRule() 174 IPTABLES::IptablesUtils::WriteRemoveFilterConfig(filter, data); in RemoveIptablesFilterRule()
|
/base/customization/enterprise_device_management/test/unittest/network_manager_proxy/network_manager_proxy_test/ |
D | network_manager_proxy_test.cpp | 213 IPTABLES::AddFilter addFilter; 228 IPTABLES::AddFilter addFilter; 245 IPTABLES::RemoveFilter removeFilter; 260 IPTABLES::RemoveFilter removeFilter;
|
/base/customization/enterprise_device_management/common/native/include/plugin_utils/ |
D | iptables_utils.h | 25 namespace IPTABLES {
|
/base/customization/enterprise_device_management/common/native/src/plugin_utils/ |
D | iptables_utils.cpp | 22 namespace IPTABLES { namespace
|