Home | History | Annotate | Download | only in libiptc

Lines Matching defs:rules

1 /* Library which manipulates firewall rules.  Version $Revision$ */
3 /* Architecture of firewall rules is as follows:
124 unsigned int num_rules; /* number of rules in list */
125 struct list_head rules; /* list of rules */
172 INIT_LIST_HEAD(&c->rules);
664 list_for_each_entry(r, &c->rules, list) {
679 list_for_each_entry_reverse(r, &c->rules, list) {
815 * chain policy rules.
825 h->chain_iterator_cur->rules.prev;
978 DEBUGP_C("%u:%u new builtin chain: %p (rules=%p)\n",
979 *num, offset, c, &c->rules);
1038 list_add_tail(&r->list, &h->chain_iterator_cur->rules);
1070 list_for_each_entry(r, &c->rules, list) {
1166 /* iterate over rules */
1167 list_for_each_entry(r, &c->rules, list) {
1207 list_for_each_entry(r, &c->rules, list) {
1394 list_for_each_entry_safe(r, rtmp, &c->rules, list) {
1519 if (list_empty(&c->rules)) {
1520 DEBUGP_C("no rules, returning NULL\n");
1524 r = list_entry(c->rules.next, struct rule_head, list);
1531 /* Returns NULL when rules run out. */
1551 &handle->rule_iterator_cur->chain->rules);
1553 if (&r->list == &handle->rule_iterator_cur->chain->rules) {
1769 prev = &c->rules;
1881 list_add_tail(&r->list, &c->rules);
1995 list_for_each_entry(i, &c->rules, list) {
2104 list_for_each_entry_safe(r, tmp, &c->rules, list) {
2131 list_for_each_entry(r, &c->rules, list) {
2228 /* To create a chain, create two rules: error node and unconditional
2636 list_for_each_entry(r, &c->rules, list) {