Home | History | Annotate | Download | only in server

Lines Matching defs:cmd

157 int BandwidthController::runIpxtablesCmd(const char *cmd, IptJumpOp jumpHandling,
161 ALOGV("runIpxtablesCmd(cmd=%s)", cmd);
162 res |= runIptablesCmd(cmd, jumpHandling, IptIpV4, failureHandling);
163 res |= runIptablesCmd(cmd, jumpHandling, IptIpV6, failureHandling);
174 int BandwidthController::runIptablesCmd(const char *cmd, IptJumpOp jumpHandling,
184 std::string fullCmd = cmd;
332 char cmd[MAX_CMD_LEN];
341 snprintf(cmd, sizeof(cmd), "-N bw_happy_box");
342 runIpxtablesCmd(cmd, IptJumpNoAdd);
346 snprintf(cmd, sizeof(cmd), "-F bw_happy_box");
347 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
349 snprintf(cmd, sizeof(cmd), "-D bw_penalty_box -j bw_happy_box");
350 runIpxtablesCmd(cmd, IptJumpNoAdd);
351 snprintf(cmd, sizeof(cmd), "-A bw_penalty_box -j bw_happy_box");
352 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
355 snprintf(cmd, sizeof(cmd), "-D bw_happy_box -j REJECT");
356 runIpxtablesCmd(cmd, IptJumpNoAdd);
357 snprintf(cmd, sizeof(cmd), "-A bw_happy_box -j REJECT");
358 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
364 char cmd[MAX_CMD_LEN];
367 snprintf(cmd, sizeof(cmd), "-D bw_penalty_box -j bw_happy_box");
368 runIpxtablesCmd(cmd, IptJumpNoAdd);
370 snprintf(cmd, sizeof(cmd), "-F bw_happy_box");
371 runIpxtablesCmd(cmd, IptJumpNoAdd);
372 snprintf(cmd, sizeof(cmd), "-X bw_happy_box");
373 runIpxtablesCmd(cmd, IptJumpNoAdd);
508 char cmd[MAX_CMD_LEN];
525 snprintf(cmd, sizeof(cmd), "-F %s", costCString);
526 res1 = runIpxtablesCmd(cmd, IptJumpNoAdd, IptFailHide);
527 snprintf(cmd, sizeof(cmd), "-N %s", costCString);
528 res2 = runIpxtablesCmd(cmd, IptJumpNoAdd, IptFailHide);
531 snprintf(cmd, sizeof(cmd), "-A %s -j bw_penalty_box", costCString);
532 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
547 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString);
548 runIpxtablesCmd(cmd, IptJumpNoAdd, IptFailHide);
550 snprintf(cmd, sizeof(cmd), "-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, ifn, costCString);
551 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
553 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString);
554 runIpxtablesCmd(cmd, IptJumpNoAdd, IptFailHide);
556 snprintf(cmd, sizeof(cmd), "-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, ifn, costCString);
557 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
562 char cmd[MAX_CMD_LEN];
581 snprintf(cmd, sizeof(cmd), "-D bw_INPUT -i %s --jump %s", ifn, costCString);
582 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
583 snprintf(cmd, sizeof(cmd), "-D bw_OUTPUT -o %s --jump %s", ifn, costCString);
584 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
588 snprintf(cmd, sizeof(cmd), "-F %s", costCString);
589 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
590 snprintf(cmd, sizeof(cmd), "-X %s", costCString);
591 res |= runIpxtablesCmd(cmd, IptJumpNoAdd);
1288 char cmd[MAX_CMD_LEN];
1304 snprintf(cmd, sizeof(cmd), "-F bw_costly_%s", costlyIfaceName);
1305 runIpxtablesCmd(cmd, IptJumpNoAdd, IptFailHide);
1307 snprintf(cmd, sizeof(cmd), "-X bw_costly_%s", costlyIfaceName);
1308 runIpxtablesCmd(cmd, IptJumpNoAdd, IptFailHide);