Lines Matching refs:intIface
591 int TetherController::enableNat(const char* intIface, const char* extIface) { in enableNat() argument
592 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface); in enableNat()
594 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat()
599 if (!strcmp(intIface, extIface)) { in enableNat()
600 ALOGE("Duplicate interface specified: %s %s", intIface, extIface); in enableNat()
604 if (isForwardingPairEnabled(intIface, extIface)) { in enableNat()
628 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat()
672 const std::string& intIface, const std::string& extIface) { in findForwardingDownstream() argument
675 if (it->second.iface == intIface) { in findForwardingDownstream()
682 void TetherController::addForwardingPair(const std::string& intIface, const std::string& extIface) { in addForwardingPair() argument
683 ForwardingDownstream* existingEntry = findForwardingDownstream(intIface, extIface); in addForwardingPair()
690 .iface = intIface, in addForwardingPair()
696 const std::string& intIface, const std::string& extIface) { in markForwardingPairDisabled() argument
697 ForwardingDownstream* existingEntry = findForwardingDownstream(intIface, extIface); in markForwardingPairDisabled()
706 const std::string& intIface, const std::string& extIface) { in isForwardingPairEnabled() argument
707 ForwardingDownstream* existingEntry = findForwardingDownstream(intIface, extIface); in isForwardingPairEnabled()
744 int TetherController::setForwardRules(bool add, const char *intIface, const char *extIface) { in setForwardRules() argument
750 "COMMIT\n", op, LOCAL_RAW_PREROUTING, intIface); in setForwardRules()
758 LOCAL_RAW_PREROUTING, intIface), in setForwardRules()
760 LOCAL_RAW_PREROUTING, intIface), in setForwardRules()
764 LOCAL_FORWARD, extIface, intIface, LOCAL_TETHER_COUNTERS_CHAIN), in setForwardRules()
766 intIface, extIface), in setForwardRules()
767 StringPrintf("%s %s -i %s -o %s -g %s", op, LOCAL_FORWARD, intIface, extIface, in setForwardRules()
776 if (add && !tetherCountingRuleExists(intIface, extIface)) { in setForwardRules()
777 v4.push_back(makeTetherCountingRule(intIface, extIface)); in setForwardRules()
778 v4.push_back(makeTetherCountingRule(extIface, intIface)); in setForwardRules()
779 v6.push_back(makeTetherCountingRule(intIface, extIface)); in setForwardRules()
780 v6.push_back(makeTetherCountingRule(extIface, intIface)); in setForwardRules()
799 setForwardRules(false, intIface, extIface); in setForwardRules()
805 addForwardingPair(intIface, extIface); in setForwardRules()
807 markForwardingPairDisabled(intIface, extIface); in setForwardRules()
813 int TetherController::disableNat(const char* intIface, const char* extIface) { in disableNat() argument
814 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in disableNat()
819 setForwardRules(false, intIface, extIface); in disableNat()
983 if (!stats.intIface[0]) { in addForwardChainStats()
986 stats.intIface = iface0; in addForwardChainStats()
990 } else if (stats.intIface == iface1 && stats.extIface == iface0) { in addForwardChainStats()