Lines Matching defs:command

1 /* Code to take an iptables-style command line and do it. */
259 " --modprobe=<command> try to insert modules using this command\n"
288 generic_opt_check(int command, int options)
293 * fact that if an option is legal with *any* command given, it is
300 if (!(command & (1<<j)))
307 "option for this command\n",
318 "Illegal option `-%c' with this command\n",
1299 unsigned int rulenum = 0, command = 0;
1338 add_command(&command, CMD_APPEND, CMD_NONE,
1344 add_command(&command, CMD_CHECK, CMD_NONE,
1350 add_command(&command, CMD_DELETE, CMD_NONE,
1356 command = CMD_DELETE_NUM;
1361 add_command(&command, CMD_REPLACE, CMD_NONE,
1374 add_command(&command, CMD_INSERT, CMD_NONE,
1384 add_command(&command, CMD_LIST,
1396 add_command(&command, CMD_LIST_RULES,
1408 add_command(&command, CMD_FLUSH, CMD_NONE,
1417 add_command(&command, CMD_ZERO, CMD_LIST|CMD_LIST_RULES,
1426 command = CMD_ZERO_NUM;
1439 add_command(&command, CMD_NEW_CHAIN, CMD_NONE,
1445 add_command(&command, CMD_DELETE_CHAIN, CMD_NONE,
1454 add_command(&command, CMD_RENAME_CHAIN, CMD_NONE,
1468 add_command(&command, CMD_SET_POLICY, CMD_NONE,
1700 if (!command)
1701 xtables_error(PARAMETER_PROBLEM, "no command specified");
1706 if (command & (CMD_REPLACE | CMD_INSERT | CMD_DELETE | CMD_APPEND | CMD_CHECK)) {
1726 if (command == CMD_REPLACE && (nsaddrs != 1 || ndaddrs != 1))
1730 generic_opt_check(command, cs.options);
1758 if (command == CMD_APPEND
1759 || command == CMD_DELETE
1760 || command == CMD_CHECK
1761 || command == CMD_INSERT
1762 || command == CMD_REPLACE) {
1832 switch (command) {
1888 if (ret && (command & CMD_ZERO))
1891 if (ret && (command & CMD_ZERO_NUM))
1901 if (ret && (command & CMD_ZERO))
1904 if (ret && (command & CMD_ZERO_NUM))