Lines Matching defs:intIface
140 int NatController::routesOp(bool add, const char *intIface, const char *extIface, char **argv, int addrCount) {
148 ret |= secondaryTableCtrl->modifyLocalRoute(tableNumber, ADD, intIface, argv[5+i]);
150 ret |= secondaryTableCtrl->modifyLocalRoute(tableNumber, DEL, intIface, argv[5+i]);
170 const char *intIface = argv[2];
174 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface);
176 if (!checkInterface(intIface) || !checkInterface(extIface)) {
183 if (!strcmp(intIface, extIface)) {
184 ALOGE("Duplicate interface specified: %s %s", intIface, extIface);
194 if (routesOp(true, intIface, extIface, argv, addrCount)) {
196 routesOp(false, intIface, extIface, argv, addrCount);
217 routesOp(false, intIface, extIface, argv, addrCount);
224 if (setForwardRules(true, intIface, extIface) != 0) {
226 routesOp(false, intIface, extIface, argv, addrCount);
256 int NatController::setTetherCountingRules(bool add, const char *intIface, const char *extIface) {
264 asprintf("a_name, "%s_%s", intIface, extIface);
282 intIface,
300 asprintf("a_name, "%s_%s", extIface, intIface);
319 intIface,
338 int NatController::setForwardRules(bool add, const char *intIface, const char *extIface) {
346 intIface,
365 intIface,
381 intIface,
400 if (setTetherCountingRules(add, intIface, extIface) && add) {
422 const char *intIface = argv[2];
426 if (!checkInterface(intIface) || !checkInterface(extIface)) {
438 setForwardRules(false, intIface, extIface);
439 routesOp(false, intIface, extIface, argv, addrCount);