diff options
Diffstat (limited to 'libiptc')
-rw-r--r-- | libiptc/libiptc.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 4c3437e3..b445331e 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1563,45 +1563,6 @@ TC_NEXT_RULE(const STRUCT_ENTRY *prev, struct xtc_handle *handle) return r->entry; } -/* How many rules in this chain? */ -static unsigned int -TC_NUM_RULES(const char *chain, struct xtc_handle *handle) -{ - struct chain_head *c; - iptc_fn = TC_NUM_RULES; - CHECK(handle); - - c = iptcc_find_label(chain, handle); - if (!c) { - errno = ENOENT; - return (unsigned int)-1; - } - - return c->num_rules; -} - -static const STRUCT_ENTRY * -TC_GET_RULE(const char *chain, unsigned int n, struct xtc_handle *handle) -{ - struct chain_head *c; - struct rule_head *r; - - iptc_fn = TC_GET_RULE; - - CHECK(handle); - - c = iptcc_find_label(chain, handle); - if (!c) { - errno = ENOENT; - return NULL; - } - - r = iptcc_get_rule_num(c, n); - if (!r) - return NULL; - return r->entry; -} - /* Returns a pointer to the target name of this position. */ static const char *standard_target_map(int verdict) { |