Lines Matching refs:ifname
891 const std::string &ifname, const char *addrString, int prefixLength) { in interfaceHasAddress() argument
913 if (std::string(addr->ifa_name) != ifname || in interfaceHasAddress()
1035 const char* ifname; in TEST_F() member
1054 mNetd->getProcSysNet(td.ipversion, td.which, td.ifname, td.parameter, &value); in TEST_F()
1073 const char* ifname; in TEST_F() member
1090 mNetd->setProcSysNet(td.ipversion, td.which, td.ifname, td.parameter, td.value); in TEST_F()
1243 void expectIdletimerInterfaceRuleExists(const std::string& ifname, int timeout, in expectIdletimerInterfaceRuleExists() argument
1248 EXPECT_TRUE(iptablesIdleTimerInterfaceRuleExists(binary, IDLETIMER_RAW_PREROUTING, ifname, in expectIdletimerInterfaceRuleExists()
1251 ifname, IdletimerRule, MANGLE_TABLE)); in expectIdletimerInterfaceRuleExists()
1255 void expectIdletimerInterfaceRuleNotExists(const std::string& ifname, int timeout, in expectIdletimerInterfaceRuleNotExists() argument
1260 EXPECT_FALSE(iptablesIdleTimerInterfaceRuleExists(binary, IDLETIMER_RAW_PREROUTING, ifname, in expectIdletimerInterfaceRuleNotExists()
1263 ifname, IdletimerRule, MANGLE_TABLE)); in expectIdletimerInterfaceRuleNotExists()
1276 const std::string ifname; in TEST_F() member
1284 status = mNetd->idletimerAddInterface(td.ifname, td.timeout, td.classLabel); in TEST_F()
1286 expectIdletimerInterfaceRuleExists(td.ifname, td.timeout, td.classLabel); in TEST_F()
1288 status = mNetd->idletimerRemoveInterface(td.ifname, td.timeout, td.classLabel); in TEST_F()
1290 expectIdletimerInterfaceRuleNotExists(td.ifname, td.timeout, td.classLabel); in TEST_F()
1621 void expectXtQuotaValueEqual(const char* ifname, long quotaBytes) { in expectXtQuotaValueEqual() argument
1622 std::string path = StringPrintf("/proc/net/xt_quota/%s", ifname); in expectXtQuotaValueEqual()
1630 void expectBandwidthInterfaceQuotaRuleExists(const char* ifname, long quotaBytes) { in expectBandwidthInterfaceQuotaRuleExists() argument
1631 std::string BANDWIDTH_COSTLY_IF = StringPrintf("bw_costly_%s", ifname); in expectBandwidthInterfaceQuotaRuleExists()
1632 std::string quotaRule = StringPrintf("quota %s", ifname); in expectBandwidthInterfaceQuotaRuleExists()
1635 EXPECT_TRUE(iptablesTargetsExists(binary, 1, FILTER_TABLE, BANDWIDTH_INPUT, ifname, in expectBandwidthInterfaceQuotaRuleExists()
1637 EXPECT_TRUE(iptablesTargetsExists(binary, 1, FILTER_TABLE, BANDWIDTH_OUTPUT, ifname, in expectBandwidthInterfaceQuotaRuleExists()
1639 EXPECT_TRUE(iptablesTargetsExists(binary, 2, FILTER_TABLE, BANDWIDTH_FORWARD, ifname, in expectBandwidthInterfaceQuotaRuleExists()
1644 expectXtQuotaValueEqual(ifname, quotaBytes); in expectBandwidthInterfaceQuotaRuleExists()
1647 void expectBandwidthInterfaceQuotaRuleDoesNotExist(const char* ifname) { in expectBandwidthInterfaceQuotaRuleDoesNotExist() argument
1648 std::string BANDWIDTH_COSTLY_IF = StringPrintf("bw_costly_%s", ifname); in expectBandwidthInterfaceQuotaRuleDoesNotExist()
1649 std::string quotaRule = StringPrintf("quota %s", ifname); in expectBandwidthInterfaceQuotaRuleDoesNotExist()
1652 EXPECT_FALSE(iptablesTargetsExists(binary, 1, FILTER_TABLE, BANDWIDTH_INPUT, ifname, in expectBandwidthInterfaceQuotaRuleDoesNotExist()
1654 EXPECT_FALSE(iptablesTargetsExists(binary, 1, FILTER_TABLE, BANDWIDTH_OUTPUT, ifname, in expectBandwidthInterfaceQuotaRuleDoesNotExist()
1656 EXPECT_FALSE(iptablesTargetsExists(binary, 2, FILTER_TABLE, BANDWIDTH_FORWARD, ifname, in expectBandwidthInterfaceQuotaRuleDoesNotExist()
1663 void expectBandwidthInterfaceAlertRuleExists(const char* ifname, long alertBytes) { in expectBandwidthInterfaceAlertRuleExists() argument
1664 std::string BANDWIDTH_COSTLY_IF = StringPrintf("bw_costly_%s", ifname); in expectBandwidthInterfaceAlertRuleExists()
1665 std::string alertRule = StringPrintf("quota %sAlert", ifname); in expectBandwidthInterfaceAlertRuleExists()
1666 std::string alertName = StringPrintf("%sAlert", ifname); in expectBandwidthInterfaceAlertRuleExists()
1674 void expectBandwidthInterfaceAlertRuleDoesNotExist(const char* ifname) { in expectBandwidthInterfaceAlertRuleDoesNotExist() argument
1675 std::string BANDWIDTH_COSTLY_IF = StringPrintf("bw_costly_%s", ifname); in expectBandwidthInterfaceAlertRuleDoesNotExist()
1676 std::string alertRule = StringPrintf("quota %sAlert", ifname); in expectBandwidthInterfaceAlertRuleDoesNotExist()
2464 void expectFirewallInterfaceRuleAllowExists(const std::string& ifname) { in expectFirewallInterfaceRuleAllowExists() argument
2467 EXPECT_TRUE(iptablesFirewallInterfaceFirstRuleExists(binary, FIREWALL_INPUT, ifname, in expectFirewallInterfaceRuleAllowExists()
2469 EXPECT_TRUE(iptablesFirewallInterfaceFirstRuleExists(binary, FIREWALL_OUTPUT, ifname, in expectFirewallInterfaceRuleAllowExists()
2474 void expectFireWallInterfaceRuleAllowDoesNotExist(const std::string& ifname) { in expectFireWallInterfaceRuleAllowDoesNotExist() argument
2478 iptablesFirewallInterfaceRuleExists(binary, FIREWALL_INPUT, ifname, returnRule)); in expectFireWallInterfaceRuleAllowDoesNotExist()
2480 iptablesFirewallInterfaceRuleExists(binary, FIREWALL_OUTPUT, ifname, returnRule)); in expectFireWallInterfaceRuleAllowDoesNotExist()