Lines Matching refs:ifn
412 int BandwidthController::prepCostlyIface(const char *ifn, QuotaType quotaType) {
423 costString += ifn;
452 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString);
455 snprintf(cmd, sizeof(cmd), "-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, ifn, costCString);
458 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString);
461 snprintf(cmd, sizeof(cmd), "-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, ifn, costCString);
466 int BandwidthController::cleanupCostlyIface(const char *ifn, QuotaType quotaType) {
475 costString += ifn;
486 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString);
488 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString);
503 char ifn[MAX_IFACENAME_LEN];
516 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
520 ifaceName = ifn;
523 return removeInterfaceSharedQuota(ifn);
533 res |= prepCostlyIface(ifn, QuotaShared);
564 removeInterfaceSharedQuota(ifn);
570 char ifn[MAX_IFACENAME_LEN];
576 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
580 ifaceName = ifn;
587 ALOGE("No such iface %s to delete", ifn);
591 res |= cleanupCostlyIface(ifn, QuotaShared);
608 char ifn[MAX_IFACENAME_LEN];
624 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
628 ifaceName = ifn;
638 res |= prepCostlyIface(ifn, QuotaUnique);
665 removeInterfaceSharedQuota(ifn);
693 char ifn[MAX_IFACENAME_LEN];
699 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
703 ifaceName = ifn;
712 ALOGE("No such iface %s to delete", ifn);
717 res |= cleanupCostlyIface(ifn, QuotaUnique);