Home | History | Annotate | Download | only in netd

Lines Matching refs:ifn

504 int BandwidthController::prepCostlyIface(const char *ifn, QuotaType quotaType) {
515 costString += ifn;
544 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString);
547 snprintf(cmd, sizeof(cmd), "-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, ifn, costCString);
550 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString);
553 snprintf(cmd, sizeof(cmd), "-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, ifn, costCString);
558 int BandwidthController::cleanupCostlyIface(const char *ifn, QuotaType quotaType) {
567 costString += ifn;
578 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString);
580 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString);
595 char ifn[MAX_IFACENAME_LEN];
608 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
612 ifaceName = ifn;
615 return removeInterfaceSharedQuota(ifn);
625 res |= prepCostlyIface(ifn, QuotaShared);
656 removeInterfaceSharedQuota(ifn);
662 char ifn[MAX_IFACENAME_LEN];
668 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
672 ifaceName = ifn;
679 ALOGE("No such iface %s to delete", ifn);
683 res |= cleanupCostlyIface(ifn, QuotaShared);
700 char ifn[MAX_IFACENAME_LEN];
716 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
720 ifaceName = ifn;
731 res |= prepCostlyIface(ifn, QuotaUnique);
763 removeInterfaceSharedQuota(ifn);
791 char ifn[MAX_IFACENAME_LEN];
797 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
801 ifaceName = ifn;
810 ALOGE("No such iface %s to delete", ifn);
815 res |= cleanupCostlyIface(ifn, QuotaUnique);