Home
last modified time | relevance | path

Searched refs:chainName (Results 1 – 7 of 7) sorted by relevance

/system/netd/tests/
Dbinder_test.cpp178 static std::vector<std::string> listIptablesRule(const char *binary, const char *chainName) { in listIptablesRule() argument
179 std::string command = StringPrintf("%s -w -n -L %s", binary, chainName); in listIptablesRule()
183 static int iptablesRuleLineLength(const char *binary, const char *chainName) { in iptablesRuleLineLength() argument
184 return listIptablesRule(binary, chainName).size(); in iptablesRuleLineLength()
188 const char *chainName, in iptablesRuleExists() argument
190 std::vector<std::string> rules = listIptablesRule(binary, chainName); in iptablesRuleExists()
199 static bool iptablesNoSocketAllowRuleExists(const char *chainName){ in iptablesNoSocketAllowRuleExists() argument
200 return iptablesRuleExists(IPTABLES_PATH, chainName, NO_SOCKET_ALLOW_RULE) && in iptablesNoSocketAllowRuleExists()
201 iptablesRuleExists(IP6TABLES_PATH, chainName, NO_SOCKET_ALLOW_RULE); in iptablesNoSocketAllowRuleExists()
204 static bool iptablesEspAllowRuleExists(const char *chainName){ in iptablesEspAllowRuleExists() argument
[all …]
/system/netd/server/
DBandwidthController.cpp321 const char *chainName = "bw_data_saver"; in makeDataSaverCommand() local
324 FirewallController::makeCriticalCommands(target, chainName) : ""; in makeDataSaverCommand()
330 "COMMIT\n", chainName, criticalCommands.c_str(), chainName, op); in makeDataSaverCommand()
786 std::string chainName = "bw_costly_" + costName; in setCostlyAlert() local
792 StringPrintf(ALERT_IPT_TEMPLATE, "-A", chainName.c_str(), bytes, alertName.c_str()), in setCostlyAlert()
818 std::string chainName = "bw_costly_" + costName; in removeCostlyAlert() local
821 StringPrintf(ALERT_IPT_TEMPLATE, "-D", chainName.c_str(), *alertBytes, alertName.c_str()), in removeCostlyAlert()
850 std::string chainName; in parseAndFlushCostlyTables() local
855 chainName = rule.substr(NEW_CHAIN_COMMAND.size()); in parseAndFlushCostlyTables()
856 ALOGV("parse chainName=<%s> orig line=<%s>", chainName.c_str(), rule.c_str()); in parseAndFlushCostlyTables()
[all …]
DFirewallController.cpp250 for (std::string chainName : chainNames) { in setUidRule() local
252 op, chainName.c_str(), uid, target); in setUidRule()
265 std::string FirewallController::makeCriticalCommands(IptablesTarget target, const char* chainName) { in makeCriticalCommands() argument
271 chainName, ICMPV6_TYPES[i]); in makeCriticalCommands()
DFirewallController.h67 static std::string makeCriticalCommands(IptablesTarget target, const char* chainName);
DNetdNativeService.h40 const String16& chainName, bool isWhitelist,
DNetdNativeService.cpp166 binder::Status NetdNativeService::firewallReplaceUidChain(const android::String16& chainName, in firewallReplaceUidChain() argument
170 android::String8 name = android::String8(chainName); in firewallReplaceUidChain()
/system/netd/server/binder/android/net/
DINetd.aidl42 boolean firewallReplaceUidChain(String chainName, boolean isWhitelist, in int[] uids); in firewallReplaceUidChain() argument