Home | History | Annotate | Download | only in netd

Lines Matching defs:ifn

407 int BandwidthController::prepCostlyIface(const char *ifn, QuotaType quotaType) {
418 costString += ifn;
447 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString);
450 snprintf(cmd, sizeof(cmd), "-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, ifn, costCString);
453 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString);
456 snprintf(cmd, sizeof(cmd), "-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, ifn, costCString);
461 int BandwidthController::cleanupCostlyIface(const char *ifn, QuotaType quotaType) {
470 costString += ifn;
481 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString);
483 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString);
498 char ifn[MAX_IFACENAME_LEN];
511 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
515 ifaceName = ifn;
518 return removeInterfaceSharedQuota(ifn);
528 res |= prepCostlyIface(ifn, QuotaShared);
559 removeInterfaceSharedQuota(ifn);
565 char ifn[MAX_IFACENAME_LEN];
571 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
575 ifaceName = ifn;
582 ALOGE("No such iface %s to delete", ifn);
586 res |= cleanupCostlyIface(ifn, QuotaShared);
603 char ifn[MAX_IFACENAME_LEN];
619 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
623 ifaceName = ifn;
634 res |= prepCostlyIface(ifn, QuotaUnique);
666 removeInterfaceSharedQuota(ifn);
694 char ifn[MAX_IFACENAME_LEN];
700 if (StrncpyAndCheck(ifn, iface, sizeof(ifn))) {
704 ifaceName = ifn;
713 ALOGE("No such iface %s to delete", ifn);
718 res |= cleanupCostlyIface(ifn, QuotaUnique);