Home
last modified time | relevance | path

Searched refs:rule_nr (Results 1 – 2 of 2) sorted by relevance

/external/iptables/iptables/
Dxtables-eb.c82 unsigned int rule_nr; in parse_rule_number() local
84 if (!xtables_strtoui(rule, NULL, &rule_nr, 1, INT_MAX)) in parse_rule_number()
88 return rule_nr; in parse_rule_number()
96 int rule_nr, in append_entry() argument
104 ret = nft_cmd_rule_insert(h, chain, table, cs, rule_nr, verbose); in append_entry()
114 int rule_nr, in delete_entry() argument
120 if (rule_nr == -1) in delete_entry()
125 rule_nr, verbose); in delete_entry()
126 rule_nr++; in delete_entry()
127 } while (rule_nr < rule_nr_end); in delete_entry()
[all …]
Dxtables-eb-translate.c58 unsigned int rule_nr; in parse_rule_number() local
60 if (!xtables_strtoui(rule, NULL, &rule_nr, 1, INT_MAX)) in parse_rule_number()
64 return rule_nr; in parse_rule_number()
121 static int parse_rule_range(const char *argv, int *rule_nr, int *rule_nr_end) in parse_rule_range() argument
136 *rule_nr = 1; /* Beginning with the first rule */ in parse_rule_range()
138 *rule_nr = strtol(argv, &buffer, 10); in parse_rule_range()
139 if (*buffer != '\0' || *rule_nr == 0) in parse_rule_range()
143 *rule_nr_end = *rule_nr; in parse_rule_range()
197 int rule_nr = 0; in do_commandeb_xlate() local
264 if (parse_rule_range(argv[optind], &rule_nr, &rule_nr_end)) in do_commandeb_xlate()
[all …]