• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iptables-1.4.12.1/iptables/

Lines Matching refs:chain

104 	{.name = "new-chain",     .has_arg = 1, .val = 'N'},
105 {.name = "delete-chain", .has_arg = 2, .val = 'X'},
106 {.name = "rename-chain", .has_arg = 1, .val = 'E'},
210 "Usage: %s -[ACD] chain rule-specification [options]\n"
211 " %s -I chain [rulenum] rule-specification [options]\n"
212 " %s -R chain rulenum rule-specification [options]\n"
213 " %s -D chain rulenum [options]\n"
214 " %s -[LS] [chain [rulenum]] [options]\n"
215 " %s -[FZ] [chain] [options]\n"
216 " %s -[NX] chain\n"
217 " %s -E old-chain-name new-chain-name\n"
218 " %s -P chain target [options]\n"
227 " --append -A chain Append to chain\n"
228 " --check -C chain Check for the existence of a rule\n"
229 " --delete -D chain Delete matching rule from chain\n"
230 " --delete -D chain rulenum\n"
231 " Delete rule rulenum (1 = first) from chain\n"
232 " --insert -I chain [rulenum]\n"
233 " Insert in chain as rulenum (default 1=first)\n"
234 " --replace -R chain rulenum\n"
235 " Replace rule rulenum (1 = first) in chain\n"
236 " --list -L [chain [rulenum]]\n"
237 " List the rules in a chain or all chains\n"
238 " --list-rules -S [chain [rulenum]]\n"
239 " Print the rules in a chain or all chains\n"
240 " --flush -F [chain] Delete all rules in chain or all chains\n"
241 " --zero -Z [chain [rulenum]]\n"
242 " Zero counters in chain or all chains\n"
243 " --new -N chain Create a new user-defined chain\n"
244 " --delete-chain\n"
245 " -X [chain] Delete a user-defined chain\n"
246 " --policy -P chain target\n"
247 " Change policy on chain to target\n"
248 " --rename-chain\n"
249 " -E old-chain new-chain\n"
250 " Change chain name, (moving any references)\n"
265 " --goto -g chain\n"
266 " jump to chain with no return\n"
472 print_header(unsigned int format, const char *chain, struct ip6tc_handle *handle)
475 const char *pol = ip6tc_get_policy(chain, &counters, handle);
476 printf("Chain %s", chain);
489 if (!ip6tc_get_references(&refs, chain, handle))
679 append_entry(const ip6t_chainlabel chain,
701 ret &= ip6tc_append_entry(chain, fw, handle);
709 replace_entry(const ip6t_chainlabel chain,
724 return ip6tc_replace_entry(chain, fw, rulenum, handle);
728 insert_entry(const ip6t_chainlabel chain,
751 ret &= ip6tc_insert_entry(chain, fw, rulenum, handle);
793 delete_entry(const ip6t_chainlabel chain,
819 ret &= ip6tc_delete_entry(chain, fw, mask, handle);
828 check_entry(const ip6t_chainlabel chain, struct ip6t_entry *fw,
849 ret &= ip6tc_check_entry(chain, fw, mask, handle);
862 const char *chain;
866 chain = ip6tc_first_chain(handle);
867 while (chain) {
869 chain = ip6tc_next_chain(handle);
874 chain = ip6tc_first_chain(handle);
875 while (chain) {
876 strcpy(chains + i*sizeof(ip6t_chainlabel), chain);
878 chain = ip6tc_next_chain(handle);
894 flush_entries6(const ip6t_chainlabel chain, int verbose,
897 if (!chain)
901 fprintf(stdout, "Flushing chain `%s'\n", chain);
902 return ip6tc_flush_entries(chain, handle);
906 zero_entries(const ip6t_chainlabel chain, int verbose,
909 if (!chain)
913 fprintf(stdout, "Zeroing chain `%s'\n", chain);
914 return ip6tc_zero_entries(chain, handle);
918 delete_chain6(const ip6t_chainlabel chain, int verbose,
921 if (!chain)
925 fprintf(stdout, "Deleting chain `%s'\n", chain);
926 return ip6tc_delete_chain(chain, handle);
930 list_entries(const ip6t_chainlabel chain, int rulenum, int verbose, int numeric,
958 if (chain && strcmp(chain, this) != 0)
1083 struct ip6tc_handle *h, const char *chain, int counters)
1092 /* print chain name */
1093 printf("-A %s", chain);
1172 list_rules(const ip6t_chainlabel chain, int rulenum, int counters,
1181 /* Dump out chain names first,
1186 if (chain && strcmp(this, chain) != 0)
1206 if (chain && strcmp(this, chain) != 0)
1279 /* TRY_LOAD (may be chain name) */
1340 const char *chain = NULL;
1384 chain = optarg;
1390 chain = optarg;
1396 chain = optarg;
1407 chain = optarg;
1420 chain = optarg;
1430 if (optarg) chain = optarg;
1433 chain = argv[optind++];
1442 if (optarg) chain = optarg;
1445 chain = argv[optind++];
1454 if (optarg) chain = optarg;
1457 chain = argv[optind++];
1463 if (optarg) chain = optarg;
1466 chain = argv[optind++];
1477 "chain name not allowed to start "
1481 "chain name may not clash "
1485 chain = optarg;
1491 if (optarg) chain = optarg;
1494 chain = argv[optind++];
1500 chain = optarg;
1506 "-%c requires old-chain-name and "
1507 "new-chain-name",
1514 chain = optarg;
1520 "-%c requires a chain and a policy",
1766 if (chain != NULL && strlen(chain) >= XT_EXTENSION_MAXNAMELEN)
1768 "chain name `%s' too long (must be under %u chars)",
1769 chain, XT_EXTENSION_MAXNAMELEN);
1789 if (strcmp(chain, "PREROUTING") == 0
1790 || strcmp(chain, "INPUT") == 0) {
1796 chain);
1799 if (strcmp(chain, "POSTROUTING") == 0
1800 || strcmp(chain, "OUTPUT") == 0) {
1806 chain);
1811 "Warning: using chain %s, not extension\n",
1820 /* If they didn't specify a target, or it's a chain
1839 /* it is no chain, and we can't load a plugin.
1842 * chain. */
1846 "goto '%s' is not a chain\n",
1858 ret = append_entry(chain, e,
1865 ret = delete_entry(chain, e,
1872 ret = ip6tc_delete_num_entry(chain, rulenum - 1, *handle);
1875 ret = check_entry(chain, e,
1882 ret = replace_entry(chain, e, rulenum - 1,
1887 ret = insert_entry(chain, e, rulenum - 1,
1894 ret = flush_entries6(chain, cs.options&OPT_VERBOSE, *handle);
1897 ret = zero_entries(chain, cs.options&OPT_VERBOSE, *handle);
1900 ret = ip6tc_zero_counter(chain, rulenum, *handle);
1905 ret = list_entries(chain,
1913 ret = zero_entries(chain,
1916 ret = ip6tc_zero_counter(chain, rulenum, *handle);
1921 ret = list_rules(chain,
1926 ret = zero_entries(chain,
1929 ret = ip6tc_zero_counter(chain, rulenum, *handle);
1932 ret = ip6tc_create_chain(chain, *handle);
1935 ret = delete_chain6(chain, cs.options&OPT_VERBOSE, *handle);
1938 ret = ip6tc_rename_chain(chain, newname, *handle);
1941 ret = ip6tc_set_policy(chain, policy, cs.options&OPT_COUNTERS ? &cs.fw6.counters : NULL, *handle);