Lines Matching refs:costCString
512 const char *costCString; in prepCostlyIface() local
519 costCString = costString.c_str(); in prepCostlyIface()
525 snprintf(cmd, sizeof(cmd), "-F %s", costCString); in prepCostlyIface()
527 snprintf(cmd, sizeof(cmd), "-N %s", costCString); in prepCostlyIface()
531 snprintf(cmd, sizeof(cmd), "-A %s -j bw_penalty_box", costCString); in prepCostlyIface()
535 costCString = "bw_costly_shared"; 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()
565 const char *costCString; in cleanupCostlyIface() local
571 costCString = costString.c_str(); in cleanupCostlyIface()
574 costCString = "bw_costly_shared"; 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()
588 snprintf(cmd, sizeof(cmd), "-F %s", costCString); in cleanupCostlyIface()
590 snprintf(cmd, sizeof(cmd), "-X %s", costCString); in cleanupCostlyIface()