Lines Matching refs:intIface

155 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()
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()
260 "-w", "-A", LOCAL_TETHER_COUNTERS_CHAIN, "-i", intIface, "-o", extIface, "-j", "RETURN" in setTetherCountingRules()
265 "-w", "-A", LOCAL_TETHER_COUNTERS_CHAIN, "-i", intIface, "-o", extIface, "-j", "RETURN" in setTetherCountingRules()
275 asprintf(&pair_name, "%s_%s", extIface, intIface); in setTetherCountingRules()
283 "-w", "-A", LOCAL_TETHER_COUNTERS_CHAIN, "-i", extIface, "-o", intIface, "-j", "RETURN" in setTetherCountingRules()
288 "-w", "-A", LOCAL_TETHER_COUNTERS_CHAIN, "-i", extIface, "-o", intIface, "-j", "RETURN" in setTetherCountingRules()
301 int NatController::setForwardRules(bool add, const char *intIface, const char *extIface) { in setForwardRules() argument
310 intIface, in setForwardRules()
330 intIface, in setForwardRules()
347 intIface, in setForwardRules()
362 intIface, in setForwardRules()
390 if (setTetherCountingRules(add, intIface, extIface) && add) { in setForwardRules()
409 int NatController::disableNat(const char* intIface, const char* extIface) { in disableNat() argument
410 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in disableNat()
415 setForwardRules(false, intIface, extIface); in disableNat()