Home
last modified time | relevance | path

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

/system/netd/server/
DNatController.cpp149 int NatController::enableNat(const char* intIface, const char* extIface) { in enableNat() argument
150 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface); in enableNat()
152 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat()
158 if (!strcmp(intIface, extIface)) { in enableNat()
159 ALOGE("Duplicate interface specified: %s %s", intIface, extIface); in enableNat()
194 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat()
239 int NatController::setTetherCountingRules(bool add, const char *intIface, const char *extIface) { in setTetherCountingRules() argument
246 asprintf(&pair_name, "%s_%s", intIface, extIface); in setTetherCountingRules()
254 "-w", "-A", LOCAL_TETHER_COUNTERS_CHAIN, "-i", intIface, "-o", extIface, "-j", "RETURN" in setTetherCountingRules()
259 "-w", "-A", LOCAL_TETHER_COUNTERS_CHAIN, "-i", intIface, "-o", extIface, "-j", "RETURN" in setTetherCountingRules()
[all …]
DNatController.h29 int enableNat(const char* intIface, const char* extIface);
30 int disableNat(const char* intIface, const char* extIface);
49 int setForwardRules(bool set, const char *intIface, const char *extIface);
50 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.cpp1126 bool filterPair = filter.intIface[0] && filter.extIface[0]; in addForwardChainStats()
1160 if (filter.intIface[0] && filter.extIface[0]) { in addForwardChainStats()
1161 if (filter.intIface == iface0 && filter.extIface == iface1) { in addForwardChainStats()
1165 } else if (filter.intIface == iface1 && filter.extIface == iface0) { in addForwardChainStats()
1170 } else if (filter.intIface[0] || filter.extIface[0]) { in addForwardChainStats()
1171 if (filter.intIface == iface0 || filter.extIface == iface1) { in addForwardChainStats()
1173 stats.intIface = iface0; in addForwardChainStats()
1177 } else if (filter.intIface == iface1 || filter.extIface == iface0) { in addForwardChainStats()
1179 stats.intIface = iface1; in addForwardChainStats()
1185 if (!stats.intIface[0]) { in addForwardChainStats()
[all …]
DCommandListener.cpp1154 tetherStats.intIface = argc > 2 ? argv[2] : ""; in runCommand()