Lines Matching refs:parent
213 * Each dynamic rule holds a pointer to the parent ipfw rule so
215 * the parent rule is deleted. XXX we should make them survive.
1273 /* remove a refcount to the parent */ \
1275 q->parent->count--; \
1321 * because O_LIMIT refer to parent rules, during the first pass only
1337 * handle parent in the second pass,
1537 * (O_LIMIT). When they are created, the parent is
1539 * the third parameter is the parent rule and not the chain.
1540 * - "parent" rules for the above (O_LIMIT_PARENT).
1567 /* increase refcount on parent, and set pointer */
1569 ipfw_dyn_rule *parent = (ipfw_dyn_rule *)rule;
1570 if ( parent->dyn_type != O_LIMIT_PARENT)
1571 panic("invalid parent");
1572 parent->count++;
1573 r->parent = parent;
1574 rule = parent->rule;
1597 * lookup dynamic parent rule using pkt and rule as search keys.
1681 ipfw_dyn_rule *parent;
1698 parent = lookup_dyn_parent(&id, rule);
1699 if (parent == NULL) {
1700 printf("ipfw: add parent failed\n");
1703 if (parent->count >= cmd->conn_limit) {
1707 remove_dyn_rule(rule, parent);
1708 if (parent->count >= cmd->conn_limit) {
1717 add_dyn_rule(&args->fwa_id, O_LIMIT, (struct ip_fw *)parent);
2550 * to the 'action' part of the parent rule
2587 * the parent rule.
3518 ipfw_dyn_dst->parent = CAST_DOWN(user64_addr_t, p->parent);
3544 ipfw_dyn_dst->parent = CAST_DOWN_EXPLICIT(user32_addr_t, p->parent);