Lines Matching refs:costCString
394 const char *costCString; in prepCostlyIface() local
401 costCString = costString.c_str(); in prepCostlyIface()
407 snprintf(cmd, sizeof(cmd), "-F %s", costCString); in prepCostlyIface()
409 snprintf(cmd, sizeof(cmd), "-N %s", costCString); in prepCostlyIface()
413 snprintf(cmd, sizeof(cmd), "-A %s -j bw_penalty_box", costCString); in prepCostlyIface()
417 costCString = "bw_costly_shared"; in prepCostlyIface()
426 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString); in prepCostlyIface()
429 snprintf(cmd, sizeof(cmd), "-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, ifn, costCString); in prepCostlyIface()
432 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString); in prepCostlyIface()
435 snprintf(cmd, sizeof(cmd), "-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, ifn, costCString); in prepCostlyIface()
438 snprintf(cmd, sizeof(cmd), "-D bw_FORWARD -o %s --jump %s", ifn, costCString); in prepCostlyIface()
440 snprintf(cmd, sizeof(cmd), "-A bw_FORWARD -o %s --jump %s", ifn, costCString); in prepCostlyIface()
450 const char *costCString; in cleanupCostlyIface() local
456 costCString = costString.c_str(); in cleanupCostlyIface()
459 costCString = "bw_costly_shared"; in cleanupCostlyIface()
463 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString); in cleanupCostlyIface()
466 snprintf(cmd, sizeof(cmd), "-D %s -o %s --jump %s", tableName, ifn, costCString); in cleanupCostlyIface()
472 snprintf(cmd, sizeof(cmd), "-F %s", costCString); in cleanupCostlyIface()
474 snprintf(cmd, sizeof(cmd), "-X %s", costCString); in cleanupCostlyIface()