Home
last modified time | relevance | path

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

/system/netd/server/
DNatController.cpp139 int NatController::enableNat(const char* intIface, const char* extIface) { in enableNat() argument
140 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface); in enableNat()
142 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat()
148 if (!strcmp(intIface, extIface)) { in enableNat()
149 ALOGE("Duplicate interface specified: %s %s", intIface, extIface); in enableNat()
176 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat()
221 int NatController::setTetherCountingRules(bool add, const char *intIface, const char *extIface) { in setTetherCountingRules() argument
228 asprintf(&pair_name, "%s_%s", intIface, extIface); in setTetherCountingRules()
240 intIface, in setTetherCountingRules()
254 asprintf(&pair_name, "%s_%s", extIface, intIface); in setTetherCountingRules()
[all …]
DNatController.h29 int enableNat(const char* intIface, const char* extIface);
30 int disableNat(const char* intIface, const char* extIface);
48 int setForwardRules(bool set, const char *intIface, const char *extIface);
49 int setTetherCountingRules(bool add, const char *intIface, const char *extIface);
DBandwidthController.cpp1109 bool filterPair = filter.intIface[0] && filter.extIface[0]; in parseForwardChainStats()
1134 if (filter.intIface[0] && filter.extIface[0]) { in parseForwardChainStats()
1135 if (filter.intIface == iface0 && filter.extIface == iface1) { in parseForwardChainStats()
1139 } else if (filter.intIface == iface1 && filter.extIface == iface0) { in parseForwardChainStats()
1144 } else if (filter.intIface[0] || filter.extIface[0]) { in parseForwardChainStats()
1145 if (filter.intIface == iface0 || filter.extIface == iface1) { in parseForwardChainStats()
1147 stats.intIface = iface0; in parseForwardChainStats()
1151 } else if (filter.intIface == iface1 || filter.extIface == iface0) { in parseForwardChainStats()
1153 stats.intIface = iface1; in parseForwardChainStats()
1159 if (!stats.intIface[0]) { in parseForwardChainStats()
[all …]
DBandwidthController.h40 : intIface(intIfn), extIface(extIfn), in TetherStats()
44 std::string intIface; variable
DCommandListener.cpp1154 tetherStats.intIface = argc > 2 ? argv[2] : ""; in runCommand()