Lines Matching refs:ifn
507 int BandwidthController::prepCostlyIface(const char *ifn, QuotaType quotaType) { in prepCostlyIface() argument
518 costString += ifn; in prepCostlyIface()
547 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString); in prepCostlyIface()
550 snprintf(cmd, sizeof(cmd), "-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, ifn, costCString); in prepCostlyIface()
553 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString); in prepCostlyIface()
556 snprintf(cmd, sizeof(cmd), "-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, ifn, costCString); in prepCostlyIface()
561 int BandwidthController::cleanupCostlyIface(const char *ifn, QuotaType quotaType) { in cleanupCostlyIface() argument
570 costString += ifn; in cleanupCostlyIface()
581 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString); in cleanupCostlyIface()
583 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString); in cleanupCostlyIface()
597 char ifn[MAX_IFACENAME_LEN]; in setInterfaceSharedQuota() local
612 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in setInterfaceSharedQuota()
616 ifaceName = ifn; in setInterfaceSharedQuota()
619 return removeInterfaceSharedQuota(ifn); in setInterfaceSharedQuota()
629 res |= prepCostlyIface(ifn, QuotaShared); in setInterfaceSharedQuota()
660 removeInterfaceSharedQuota(ifn); in setInterfaceSharedQuota()
666 char ifn[MAX_IFACENAME_LEN]; in removeInterfaceSharedQuota() local
674 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in removeInterfaceSharedQuota()
678 ifaceName = ifn; in removeInterfaceSharedQuota()
685 ALOGE("No such iface %s to delete", ifn); in removeInterfaceSharedQuota()
689 res |= cleanupCostlyIface(ifn, QuotaShared); in removeInterfaceSharedQuota()
706 char ifn[MAX_IFACENAME_LEN]; in setInterfaceQuota() local
725 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in setInterfaceQuota()
729 ifaceName = ifn; in setInterfaceQuota()
740 res |= prepCostlyIface(ifn, QuotaUnique); in setInterfaceQuota()
772 removeInterfaceSharedQuota(ifn); in setInterfaceQuota()
803 char ifn[MAX_IFACENAME_LEN]; in removeInterfaceQuota() local
811 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) { in removeInterfaceQuota()
815 ifaceName = ifn; in removeInterfaceQuota()
824 ALOGE("No such iface %s to delete", ifn); in removeInterfaceQuota()
829 res |= cleanupCostlyIface(ifn, QuotaUnique); in removeInterfaceQuota()