Lines Matching defs:parent
182 * Each dynamic rule holds a pointer to the parent ipfw rule so
184 * the parent rule is deleted. XXX we should make them survive.
775 /* remove a refcount to the parent */ \
777 q->parent->count--; \
823 * because O_LIMIT refer to parent rules, during the first pass only
839 * handle parent in the second pass,
1039 * (O_LIMIT). When they are created, the parent is
1041 * the third parameter is the parent rule and not the chain.
1042 * - "parent" rules for the above (O_LIMIT_PARENT).
1069 /* increase refcount on parent, and set pointer */
1071 ipfw_dyn_rule *parent = (ipfw_dyn_rule *)rule;
1072 if ( parent->dyn_type != O_LIMIT_PARENT)
1073 panic("invalid parent");
1074 parent->count++;
1075 r->parent = parent;
1076 rule = parent->rule;
1099 * lookup dynamic parent rule using pkt and rule as search keys.
1183 ipfw_dyn_rule *parent;
1200 parent = lookup_dyn_parent(&id, rule);
1201 if (parent == NULL) {
1202 printf("ipfw: add parent failed\n");
1205 if (parent->count >= cmd->conn_limit) {
1209 remove_dyn_rule(rule, parent);
1210 if (parent->count >= cmd->conn_limit) {
1219 add_dyn_rule(&args->f_id, O_LIMIT, (struct ip_fw *)parent);
2046 * to the 'action' part of the parent rule
2083 * the parent rule.