Lines Matching refs:num_rules
125 unsigned int num_rules; /* number of rules in list */ member
842 h->chain_iterator_cur->num_rules--; in __iptcc_p_del_policy()
1038 h->chain_iterator_cur->num_rules++; in cache_add_entry()
1279 alloc_handle(const char *tablename, unsigned int size, unsigned int num_rules) in alloc_handle() argument
1765 if (rulenum > c->num_rules) { in TC_INSERT_ENTRY()
1773 if (rulenum == c->num_rules) { in TC_INSERT_ENTRY()
1775 } else if (rulenum + 1 <= c->num_rules/2) { in TC_INSERT_ENTRY()
1779 r = iptcc_get_rule_num_reverse(c, c->num_rules - rulenum); in TC_INSERT_ENTRY()
1797 c->num_rules++; in TC_INSERT_ENTRY()
1821 if (rulenum >= c->num_rules) { in TC_REPLACE_ENTRY()
1827 if (rulenum + 1 <= c->num_rules/2) { in TC_REPLACE_ENTRY()
1830 old = iptcc_get_rule_num_reverse(c, c->num_rules - rulenum); in TC_REPLACE_ENTRY()
1887 c->num_rules++; in TC_APPEND_ENTRY()
2025 c->num_rules--; in delete_entry()
2069 if (rulenum >= c->num_rules) { in TC_DELETE_NUM_ENTRY()
2075 if (rulenum + 1 <= c->num_rules/2) { in TC_DELETE_NUM_ENTRY()
2078 r = iptcc_get_rule_num_reverse(c, c->num_rules - rulenum); in TC_DELETE_NUM_ENTRY()
2090 c->num_rules--; in TC_DELETE_NUM_ENTRY()
2115 c->num_rules = 0; in TC_FLUSH_ENTRIES()
2345 if (c->num_rules) { in TC_DELETE_CHAIN()