/system/netd/tests/ |
D | test_utils.cpp | 66 std::vector<std::string> listIptablesRule(const char* binary, const char* chainName) { in listIptablesRule() argument 67 std::string command = StringPrintf("%s -w -n -L %s", binary, chainName); in listIptablesRule() 71 int iptablesRuleLineLength(const char* binary, const char* chainName) { in iptablesRuleLineLength() argument 72 return listIptablesRule(binary, chainName).size(); in iptablesRuleLineLength() 75 bool iptablesRuleExists(const char* binary, const char* chainName, in iptablesRuleExists() argument 77 std::vector<std::string> rules = listIptablesRule(binary, chainName); in iptablesRuleExists()
|
D | test_utils.h | 30 std::vector<std::string> listIptablesRule(const char* binary, const char* chainName); 32 int iptablesRuleLineLength(const char* binary, const char* chainName); 34 bool iptablesRuleExists(const char* binary, const char* chainName, const std::string& expectedRule);
|
D | binder_test.cpp | 1223 const char* chainName) { in listIptablesRuleByTable() argument 1224 std::string command = StringPrintf("%s -t %s -w -n -v -L %s", binary, table, chainName); in listIptablesRuleByTable() 1229 bool iptablesIdleTimerInterfaceRuleExists(const char* binary, const char* chainName, in iptablesIdleTimerInterfaceRuleExists() argument 1232 std::vector<std::string> rules = listIptablesRuleByTable(binary, table, chainName); in iptablesIdleTimerInterfaceRuleExists() 1606 const char* chainName, const std::string& expectedTargetA, in iptablesTargetsExists() argument 1608 std::vector<std::string> rules = listIptablesRuleByTable(binary, table, chainName); in iptablesTargetsExists() 1861 bool iptablesNetworkPermissionIptablesRuleExists(const char* binary, const char* chainName, in iptablesNetworkPermissionIptablesRuleExists() argument 1865 std::vector<std::string> rules = listIptablesRuleByTable(binary, table, chainName); in iptablesNetworkPermissionIptablesRuleExists() 2430 bool iptablesFirewallInterfaceFirstRuleExists(const char* binary, const char* chainName, in iptablesFirewallInterfaceFirstRuleExists() argument 2433 std::vector<std::string> rules = listIptablesRuleByTable(binary, FILTER_TABLE, chainName); in iptablesFirewallInterfaceFirstRuleExists() [all …]
|
/system/netd/server/ |
D | BandwidthController.cpp | 307 const char *chainName = "bw_data_saver"; in makeDataSaverCommand() local 310 FirewallController::makeCriticalCommands(target, chainName) : ""; in makeDataSaverCommand() 316 "COMMIT\n", chainName, criticalCommands.c_str(), chainName, op); in makeDataSaverCommand() 706 std::string chainName = "bw_costly_" + costName; in setCostlyAlert() local 712 StringPrintf(ALERT_IPT_TEMPLATE, "-A", chainName.c_str(), bytes, alertName.c_str()), in setCostlyAlert() 739 std::string chainName = "bw_costly_" + costName; in removeCostlyAlert() local 742 StringPrintf(ALERT_IPT_TEMPLATE, "-D", chainName.c_str(), *alertBytes, alertName.c_str()), in removeCostlyAlert() 771 std::string chainName; in parseAndFlushCostlyTables() local 776 chainName = rule.substr(NEW_CHAIN_COMMAND.size()); in parseAndFlushCostlyTables() 777 ALOGV("parse chainName=<%s> orig line=<%s>", chainName.c_str(), rule.c_str()); in parseAndFlushCostlyTables() [all …]
|
D | FirewallController.cpp | 273 for (const std::string& chainName : chainNames) { in setUidRule() local 275 op, chainName.c_str(), uid, target); in setUidRule() 288 std::string FirewallController::makeCriticalCommands(IptablesTarget target, const char* chainName) { in makeCriticalCommands() argument 294 chainName, ICMPV6_TYPES[i]); in makeCriticalCommands()
|
D | FirewallController.h | 77 static std::string makeCriticalCommands(IptablesTarget target, const char* chainName);
|
D | NetdNativeService.h | 40 binder::Status firewallReplaceUidChain(const std::string& chainName, bool isAllowlist,
|
D | NetdNativeService.cpp | 273 binder::Status NetdNativeService::firewallReplaceUidChain(const std::string& chainName, in firewallReplaceUidChain() argument 278 int err = gCtls->firewallCtrl.replaceUidChain(chainName, isAllowlist, uids); in firewallReplaceUidChain()
|
/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/ |
D | INetd.aidl | 4 …boolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isWhitelist, in int[] uids… in firewallReplaceUidChain() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/2/android/net/ |
D | INetd.aidl | 21 …boolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isWhitelist, in int[] uids… in firewallReplaceUidChain() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/3/android/net/ |
D | INetd.aidl | 22 …boolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isWhitelist, in int[] uids… in firewallReplaceUidChain() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/4/android/net/ |
D | INetd.aidl | 22 …boolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isWhitelist, in int[] uids… in firewallReplaceUidChain() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/7/android/net/ |
D | INetd.aidl | 38 …boolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isAllowlist, in int[] uids… in firewallReplaceUidChain() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/6/android/net/ |
D | INetd.aidl | 38 …boolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isAllowlist, in int[] uids… in firewallReplaceUidChain() argument
|
/system/netd/server/binder/android/net/ |
D | INetd.aidl | 50 boolean firewallReplaceUidChain(in @utf8InCpp String chainName, in firewallReplaceUidChain() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/ |
D | INetd.aidl | 38 …boolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isAllowlist, in int[] uids… in firewallReplaceUidChain() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/5/android/net/ |
D | INetd.aidl | 22 …boolean firewallReplaceUidChain(in @utf8InCpp String chainName, boolean isAllowlist, in int[] uids… in firewallReplaceUidChain() argument
|