Lines Matching refs:IPTABLES_PATH

78 #define IPTABLES_PATH "/system/bin/iptables"  macro
203 return iptablesRuleExists(IPTABLES_PATH, chainName, NO_SOCKET_ALLOW_RULE) && in iptablesNoSocketAllowRuleExists()
208 return iptablesRuleExists(IPTABLES_PATH, chainName, ESP_ALLOW_RULE) && in iptablesEspAllowRuleExists()
229 EXPECT_EQ((int) uids.size() + 9, iptablesRuleLineLength(IPTABLES_PATH, chainName.c_str())); in TEST_F()
238 EXPECT_EQ(5, iptablesRuleLineLength(IPTABLES_PATH, chainName.c_str())); in TEST_F()
246 EXPECT_EQ((int) uids.size() + 5, iptablesRuleLineLength(IPTABLES_PATH, chainName.c_str())); in TEST_F()
256 EXPECT_EQ(5, iptablesRuleLineLength(IPTABLES_PATH, chainName.c_str())); in TEST_F()
456 size_t minSize = (std::string(binary) == IPTABLES_PATH) ? 3 : 9; in bandwidthDataSaverEnabled()
474 const int enabled4 = bandwidthDataSaverEnabled(IPTABLES_PATH); in getDataSaverState()
977 for (const auto& binary : { IPTABLES_PATH, IP6TABLES_PATH }) { in expectNoTestCounterRules()
1015 runCommand(StringPrintf("%s -w -N tetherctrl_counters", IPTABLES_PATH)); in TEST_F()
1027 addTetherCounterValues(IPTABLES_PATH, intIface1, extIface1, 123, 111); in TEST_F()
1029 addTetherCounterValues(IPTABLES_PATH, extIface1, intIface1, 321, 222); in TEST_F()
1035 addTetherCounterValues(IPTABLES_PATH, intIface2, extIface2, 1000, 333); in TEST_F()
1038 addTetherCounterValues(IPTABLES_PATH, extIface2, intIface2, 2000, 444); in TEST_F()
1053 for (const auto& path : { IPTABLES_PATH, IP6TABLES_PATH }) { in TEST_F()
1094 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectIdletimerInterfaceRuleExists()
1106 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectIdletimerInterfaceRuleNotExists()
1149 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectStrictSetUidAccept()
1160 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectStrictSetUidLog()
1171 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectStrictSetUidReject()
1474 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectBandwidthInterfaceQuotaRuleExists()
1491 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectBandwidthInterfaceQuotaRuleDoesNotExist()
1508 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectBandwidthInterfaceAlertRuleExists()
1518 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectBandwidthInterfaceAlertRuleDoesNotExist()
1527 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectBandwidthGlobalAlertRuleExists()
1536 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectBandwidthManipulateSpecialAppRuleExists()
1544 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectBandwidthManipulateSpecialAppRuleDoesNotExist()
1766 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectNetworkPermissionIptablesRuleExists()
2291 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectFirewallAllowlistMode()
2299 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectFirewallDenylistMode()
2342 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectFirewallInterfaceRuleAllowExists()
2352 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectFireWallInterfaceRuleAllowDoesNotExist()
2390 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) in expectFirewallUidFirstRuleExists()
2396 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) in expectFirewallUidFirstRuleDoesNotExist()
2402 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) in expectFirewallUidLastRuleExists()
2408 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) in expectFirewallUidLastRuleDoesNotExist()
2430 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) in expectFirewallChildChainsLastRuleExists()
2435 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectFirewallChildChainsLastRuleDoesNotExist()
2952 EXPECT_TRUE(iptablesChainMatch(IPTABLES_PATH, NAT_TABLE, TETHER_NAT_POSTROUTING, in expectNatEnable()
2955 iptablesChainMatch(IPTABLES_PATH, RAW_TABLE, TETHER_RAW_PREROUTING, preroutingV4Match)); in expectNatEnable()
2956 EXPECT_TRUE(iptablesChainMatch(IPTABLES_PATH, FILTER_TABLE, TETHER_FORWARD, forwardV4Match)); in expectNatEnable()
2966 for (const auto& binary : {IPTABLES_PATH, IP6TABLES_PATH}) { in expectNatEnable()
2978 EXPECT_TRUE(iptablesChainMatch(IPTABLES_PATH, FILTER_TABLE, TETHER_FORWARD, forwardV4Match)); in expectNatDisable()
2981 EXPECT_EQ(2, iptablesCountRules(IPTABLES_PATH, NAT_TABLE, TETHER_NAT_POSTROUTING)); in expectNatDisable()
2982 EXPECT_EQ(2, iptablesCountRules(IPTABLES_PATH, RAW_TABLE, TETHER_RAW_PREROUTING)); in expectNatDisable()