Searched refs:chainName (Results 1 – 7 of 7) sorted by relevance
/system/netd/tests/ |
D | binder_test.cpp | 178 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/ |
D | BandwidthController.cpp | 321 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 …]
|
D | FirewallController.cpp | 250 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()
|
D | FirewallController.h | 67 static std::string makeCriticalCommands(IptablesTarget target, const char* chainName);
|
D | NetdNativeService.h | 40 const String16& chainName, bool isWhitelist,
|
D | NetdNativeService.cpp | 166 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/ |
D | INetd.aidl | 42 boolean firewallReplaceUidChain(String chainName, boolean isWhitelist, in int[] uids); in firewallReplaceUidChain() argument
|