Home
last modified time | relevance | path

Searched refs:intIface (Results 1 – 5 of 5) sorted by relevance

/system/netd/server/
DNatController.cpp155 int NatController::enableNat(const char* intIface, const char* extIface) { in enableNat() argument
156 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface); in enableNat()
158 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat()
164 if (!strcmp(intIface, extIface)) { in enableNat()
165 ALOGE("Duplicate interface specified: %s %s", intIface, extIface); in enableNat()
200 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat()
245 int NatController::setTetherCountingRules(bool add, const char *intIface, const char *extIface) { in setTetherCountingRules() argument
252 asprintf(&pair_name, "%s_%s", intIface, extIface); in setTetherCountingRules()
260 "-w", "-A", LOCAL_TETHER_COUNTERS_CHAIN, "-i", intIface, "-o", extIface, "-j", "RETURN" in setTetherCountingRules()
265 "-w", "-A", LOCAL_TETHER_COUNTERS_CHAIN, "-i", intIface, "-o", extIface, "-j", "RETURN" in setTetherCountingRules()
[all …]
DNatController.h31 int enableNat(const char* intIface, const char* extIface);
32 int disableNat(const char* intIface, const char* extIface);
51 int setForwardRules(bool set, const char *intIface, const char *extIface);
52 int setTetherCountingRules(bool add, const char *intIface, const char *extIface);
DBandwidthController.h40 : intIface(intIfn), extIface(extIfn), in TetherStats()
44 std::string intIface; variable
57 if (intIface == other.intIface && extIface == other.extIface) { in addStatsIfMatch()
DBandwidthController.cpp1006 bool filterPair = filter.intIface[0] && filter.extIface[0]; in addForwardChainStats()
1044 if (filter.intIface[0] && filter.extIface[0]) { in addForwardChainStats()
1045 if (filter.intIface == iface0 && filter.extIface == iface1) { in addForwardChainStats()
1049 } else if (filter.intIface == iface1 && filter.extIface == iface0) { in addForwardChainStats()
1054 } else if (filter.intIface[0] || filter.extIface[0]) { in addForwardChainStats()
1055 if (filter.intIface == iface0 || filter.extIface == iface1) { in addForwardChainStats()
1057 stats.intIface = iface0; in addForwardChainStats()
1061 } else if (filter.intIface == iface1 || filter.extIface == iface0) { in addForwardChainStats()
1063 stats.intIface = iface1; in addForwardChainStats()
1069 if (!stats.intIface[0]) { in addForwardChainStats()
[all …]
DCommandListener.cpp976 tetherStats.intIface = argc > 2 ? argv[2] : ""; in runCommand()