Lines Matching defs:command

1 /* Code to take an ip6tables-style command line and do it. */
265 " --modprobe=<command> try to insert modules using this command\n"
294 generic_opt_check(int command, int options)
299 * fact that if an option is legal with *any* command given, it is
306 if (!(command & (1<<j)))
313 "option for this command\n",
324 "Illegal option `-%c' with this command\n",
1303 unsigned int rulenum = 0, command = 0;
1342 add_command(&command, CMD_APPEND, CMD_NONE,
1348 add_command(&command, CMD_CHECK, CMD_NONE,
1354 add_command(&command, CMD_DELETE, CMD_NONE,
1360 command = CMD_DELETE_NUM;
1365 add_command(&command, CMD_REPLACE, CMD_NONE,
1378 add_command(&command, CMD_INSERT, CMD_NONE,
1388 add_command(&command, CMD_LIST,
1400 add_command(&command, CMD_LIST_RULES,
1412 add_command(&command, CMD_FLUSH, CMD_NONE,
1421 add_command(&command, CMD_ZERO, CMD_LIST|CMD_LIST_RULES,
1430 command = CMD_ZERO_NUM;
1443 add_command(&command, CMD_NEW_CHAIN, CMD_NONE,
1449 add_command(&command, CMD_DELETE_CHAIN, CMD_NONE,
1458 add_command(&command, CMD_RENAME_CHAIN, CMD_NONE,
1472 add_command(&command, CMD_SET_POLICY, CMD_NONE,
1703 if (!command)
1704 xtables_error(PARAMETER_PROBLEM, "no command specified");
1709 if (command & (CMD_REPLACE | CMD_INSERT | CMD_DELETE | CMD_APPEND | CMD_CHECK)) {
1729 if (command == CMD_REPLACE && (nsaddrs != 1 || ndaddrs != 1))
1733 generic_opt_check(command, cs.options);
1761 if (command == CMD_APPEND
1762 || command == CMD_DELETE
1763 || command == CMD_CHECK
1764 || command == CMD_INSERT
1765 || command == CMD_REPLACE) {
1833 switch (command) {
1889 if (ret && (command & CMD_ZERO))
1892 if (ret && (command & CMD_ZERO_NUM))
1902 if (ret && (command & CMD_ZERO))
1905 if (ret && (command & CMD_ZERO_NUM))