Searched refs:extIface (Results 1 – 5 of 5) sorted by relevance
/system/netd/server/ |
D | NatController.cpp | 137 int NatController::enableNat(const char* intIface, const char* extIface) { in enableNat() argument 138 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface); in enableNat() 140 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat() 146 if (!strcmp(intIface, extIface)) { in enableNat() 147 ALOGE("Duplicate interface specified: %s %s", intIface, extIface); in enableNat() 156 StringPrintf("-A %s -o %s -j MASQUERADE", LOCAL_NAT_POSTROUTING, extIface), in enableNat() 172 ALOGE("Error setting postroute rule: iface=%s", extIface); in enableNat() 179 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat() 201 int NatController::setForwardRules(bool add, const char *intIface, const char *extIface) { in setForwardRules() argument 215 op, LOCAL_FORWARD, extIface, intIface, LOCAL_TETHER_COUNTERS_CHAIN), in setForwardRules() [all …]
|
D | NatController.h | 30 int enableNat(const char* intIface, const char* extIface); 31 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);
|
D | BandwidthController.h | 40 : intIface(intIfn), extIface(extIfn), in TetherStats() 46 std::string extIface; variable 59 if (intIface == other.intIface && extIface == other.extIface) { in addStatsIfMatch()
|
D | BandwidthController.cpp | 804 bool filterPair = filter.intIface[0] && filter.extIface[0]; in addForwardChainStats() 840 if (filter.intIface[0] && filter.extIface[0]) { in addForwardChainStats() 841 if (filter.intIface == iface0 && filter.extIface == iface1) { in addForwardChainStats() 845 } else if (filter.intIface == iface1 && filter.extIface == iface0) { in addForwardChainStats() 850 } else if (filter.intIface[0] || filter.extIface[0]) { in addForwardChainStats() 851 if (filter.intIface == iface0 || filter.extIface == iface1) { in addForwardChainStats() 854 stats.extIface = iface1; in addForwardChainStats() 857 } else if (filter.intIface == iface1 || filter.extIface == iface0) { in addForwardChainStats() 860 stats.extIface = iface0; in addForwardChainStats() 868 stats.extIface = iface1; in addForwardChainStats() [all …]
|
D | CommandListener.cpp | 982 tetherStats.extIface = argc > 3 ? argv[3] : ""; in runCommand()
|