Home
last modified time | relevance | path

Searched refs:rulenum (Results 1 – 18 of 18) sorted by relevance

/external/iptables/iptables/
Dnft-cmd.c20 int rulenum, bool verbose) in nft_cmd_new() argument
33 cmd->rulenum = rulenum; in nft_cmd_new()
110 int rulenum, bool verbose) in nft_cmd_rule_insert() argument
115 rulenum, verbose); in nft_cmd_rule_insert()
121 if (cmd->rulenum > 0) in nft_cmd_rule_insert()
146 const char *table, int rulenum, bool verbose) in nft_cmd_rule_delete_num() argument
151 rulenum, verbose); in nft_cmd_rule_delete_num()
247 const char *table, int rulenum, unsigned int format) in nft_cmd_rule_list() argument
251 cmd = nft_cmd_new(h, NFT_COMPAT_RULE_LIST, table, chain, NULL, rulenum, in nft_cmd_rule_list()
264 const char *table, void *data, int rulenum, in nft_cmd_rule_replace() argument
[all …]
Dnft-cmd.h16 int rulenum; member
32 int rulenum, bool verbose);
40 int rulenum, bool verbose);
45 const char *table, int rulenum, bool verbose);
57 const char *table, int rulenum, unsigned int format);
66 const char *table, void *data, int rulenum,
72 const char *table, int rulenum);
74 const char *table, int rulenum, int counters);
Dxtables.c266 int rulenum, int family, in add_entry() argument
288 cs, rulenum, in add_entry()
308 cs, rulenum, in add_entry()
321 unsigned int rulenum, in replace_entry() argument
340 return nft_cmd_rule_replace(h, chain, table, cs, rulenum, verbose); in replace_entry()
426 int rulenum, int verbose, int numeric, int expanded, in list_entries() argument
446 return nft_cmd_rule_list(h, chain, table, rulenum, format); in list_entries()
451 int rulenum, int counters) in list_rules() argument
456 return nft_cmd_rule_list_save(h, chain, table, rulenum, counters); in list_rules()
518 p->rulenum = parse_rulenumber(argv[optind++]); in do_parse()
[all …]
Dxtables-arp.c324 int rulenum, int verbose, int numeric, int expanded, in list_entries() argument
344 return nft_cmd_rule_list(h, chain, table, rulenum, format); in list_entries()
352 int rulenum, in append_entry() argument
375 rulenum, verbose); in append_entry()
387 unsigned int rulenum, in replace_entry() argument
399 return nft_cmd_rule_replace(h, chain, table, cs, rulenum, verbose); in replace_entry()
472 unsigned int rulenum = 0, options = 0, command = 0; in do_commandarp() local
509 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
519 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
531 rulenum = parse_rulenumber(argv[optind++]); in do_commandarp()
[all …]
Dip6tables.c499 unsigned int rulenum, in replace_entry() argument
512 return ip6tc_replace_entry(chain, fw, rulenum, handle); in replace_entry()
518 unsigned int rulenum, in insert_entry() argument
539 ret &= ip6tc_insert_entry(chain, fw, rulenum, handle); in insert_entry()
718 list_entries(const xt_chainlabel chain, int rulenum, int verbose, int numeric, in list_entries() argument
751 if (!rulenum) in list_entries()
758 if (!rulenum || num == rulenum) in list_entries()
977 list_rules(const xt_chainlabel chain, int rulenum, int counters, in list_rules() argument
988 if (!rulenum) for (this = ip6tc_first_chain(handle); in list_rules()
1018 if (!rulenum || num == rulenum) in list_rules()
[all …]
Diptables.c490 unsigned int rulenum, in replace_entry() argument
503 return iptc_replace_entry(chain, fw, rulenum, handle); in replace_entry()
509 unsigned int rulenum, in insert_entry() argument
530 ret &= iptc_insert_entry(chain, fw, rulenum, handle); in insert_entry()
709 list_entries(const xt_chainlabel chain, int rulenum, int verbose, int numeric, in list_entries() argument
742 if (!rulenum) in list_entries()
749 if (!rulenum || num == rulenum) in list_entries()
973 list_rules(const xt_chainlabel chain, int rulenum, int counters, in list_rules() argument
984 if (!rulenum) for (this = iptc_first_chain(handle); in list_rules()
1014 if (!rulenum || num == rulenum) in list_rules()
[all …]
Dnft.h175 …_handle *h, const char *chain, const char *table, struct nftnl_rule *r, int rulenum, bool verbose);
178 int nft_rule_delete_num(struct nft_handle *h, const char *chain, const char *table, int rulenum, bo…
179 …_handle *h, const char *chain, const char *table, struct nftnl_rule *r, int rulenum, bool verbose);
180 int nft_rule_list(struct nft_handle *h, const char *chain, const char *table, int rulenum, unsigned…
181 int nft_rule_list_save(struct nft_handle *h, const char *chain, const char *table, int rulenum, int…
184 int nft_rule_zero_counters(struct nft_handle *h, const char *chain, const char *table, int rulenum);
258 int rulenum, bool verbose);
Dnft.c2094 struct nftnl_rule *rule, int rulenum) in nft_rule_find() argument
2101 if (rulenum >= 0) in nft_rule_find()
2103 return nftnl_rule_lookup_byindex(c, rulenum); in nft_rule_find()
2208 const char *table, struct nftnl_rule *new_rule, int rulenum, in nft_rule_insert() argument
2224 if (rulenum > 0) { in nft_rule_insert()
2225 r = nft_rule_find(h, c, new_rule, rulenum); in nft_rule_insert()
2230 r = nft_rule_find(h, c, new_rule, rulenum - 1); in nft_rule_insert()
2255 const char *table, int rulenum, bool verbose) in nft_rule_delete_num() argument
2269 r = nft_rule_find(h, c, NULL, rulenum); in nft_rule_delete_num()
2271 DEBUGP("deleting rule by number %d\n", rulenum); in nft_rule_delete_num()
[all …]
Dxshared.c774 unsigned int rulenum; in parse_rulenumber() local
776 if (!xtables_strtoui(rule, NULL, &rulenum, 1, INT_MAX)) in parse_rulenumber()
780 return rulenum; in parse_rulenumber()
Dnft-shared.h205 unsigned int rulenum; member
Dxtables-eb-translate.c275 p.rulenum = rule_nr; in do_commandeb_xlate()
/external/iptables/include/libiptc/
Dlibiptc.h67 unsigned int rulenum,
73 unsigned int rulenum,
97 unsigned int rulenum,
140 unsigned int rulenum,
145 unsigned int rulenum,
150 unsigned int rulenum,
Dlibip6tc.h63 unsigned int rulenum,
69 unsigned int rulenum,
92 unsigned int rulenum,
134 unsigned int rulenum,
139 unsigned int rulenum,
144 unsigned int rulenum,
/external/iproute2/include/libiptc/
Dlibip6tc.h63 unsigned int rulenum,
69 unsigned int rulenum,
92 unsigned int rulenum,
134 unsigned int rulenum,
139 unsigned int rulenum,
144 unsigned int rulenum,
Dlibiptc.h67 unsigned int rulenum,
73 unsigned int rulenum,
97 unsigned int rulenum,
140 unsigned int rulenum,
145 unsigned int rulenum,
150 unsigned int rulenum,
/external/iptables/libiptc/
Dlibiptc.c642 unsigned int rulenum) in iptcc_get_rule_num() argument
649 if (num == rulenum) in iptcc_get_rule_num()
657 unsigned int rulenum) in iptcc_get_rule_num_reverse() argument
664 if (num == rulenum) in iptcc_get_rule_num_reverse()
1737 unsigned int rulenum, in TC_INSERT_ENTRY() argument
1753 if (rulenum > c->num_rules) { in TC_INSERT_ENTRY()
1761 if (rulenum == c->num_rules) { in TC_INSERT_ENTRY()
1763 } else if (rulenum + 1 <= c->num_rules/2) { in TC_INSERT_ENTRY()
1764 r = iptcc_get_rule_num(c, rulenum + 1); in TC_INSERT_ENTRY()
1767 r = iptcc_get_rule_num_reverse(c, c->num_rules - rulenum); in TC_INSERT_ENTRY()
[all …]
/external/iptables/extensions/
Dlibxt_TRACE.man10 "TRACE: tablename:chainname:type:rulenum " where type can be "rule" for
/external/libpcap/
Dscanner.l365 rnr|rulenum return PF_RNR;