Home
last modified time | relevance | path

Searched refs:extIface (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()
180 extIface, in enableNat()
193 ALOGE("Error setting postroute rule: iface=%s", 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()
[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()
46 std::string extIface; 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()
1058 stats.extIface = iface1; in addForwardChainStats()
1061 } else if (filter.intIface == iface1 || filter.extIface == iface0) { in addForwardChainStats()
1064 stats.extIface = iface0; in addForwardChainStats()
1072 stats.extIface = iface1; in addForwardChainStats()
[all …]
DCommandListener.cpp977 tetherStats.extIface = argc > 3 ? argv[3] : ""; in runCommand()