ip_fw
struct ip_fw *x_next; /* linked list of rules */
struct ip_fw *next_rule; /* ptr to next [skipto] rule */
struct ip_fw *rule = (struct ip_fw *)buf;
struct ip_fw rule; /* On-the-fly built rule */
struct ip_fw rule;
struct ip_fw rule; /* On-the-fly built rule */
jump_lookup_pos(struct ip_fw_chain *chain, struct ip_fw *f, uint32_t num,
jump(struct ip_fw_chain *chain, struct ip_fw *f, uint32_t num,
struct ip_fw *q = NULL;
static uint32_t jump(struct ip_fw_chain *chain, struct ip_fw *f,
struct ip_fw *f;
struct ip_fw *rule = chain->map[f_pos];
struct ip_fw *rule = NULL;
rule = ipfw_alloc_rule(chain, sizeof(struct ip_fw));
struct ip_fw *reap;
struct ip_fw *krule;
struct ip_fw *krule;
roundup2(sizeof(struct ip_fw) + cmdlen * 4 - 4, 8));
struct ip_fw *rule; /* pointer to rule */
dyn_handle_orphaned(struct ip_fw *old_rule, struct dyn_data *data)
struct ip_fw *rule;
struct ip_fw *
struct ip_fw *rule;
struct ip_fw *rule, uint32_t hashval, uint32_t limit, uint32_t kidx)
uint16_t fibnum, const void *ulp, int pktlen, struct ip_fw *rule,
ipfw_dyn_install_state(struct ip_fw_chain *chain, struct ip_fw *rule,
struct ip_fw *rule, uint32_t kidx)
struct ip_fw *rule, uint32_t kidx)
struct ip_fw *rule;
struct ip_fw *rule;
struct ip_fw *rule;
ipfw_is_dyn_rule(struct ip_fw *rule)
struct ip_fw *rule;
struct ip_fw *rule;
struct ip_fw *rule;
struct ip_fw *, uint32_t, uint32_t, uint32_t);
ipfw_reset_eaction(struct ip_fw_chain *ch, struct ip_fw *rule,
ipfw_log_syslog(struct ip_fw_chain *chain, struct ip_fw *f, u_int hlen,
ipfw_copy_rule_comment(struct ip_fw *f, char *dst)
ipfw_log_rtsock(struct ip_fw_chain *chain, struct ip_fw *f, u_int hlen,
ipfw_log(struct ip_fw_chain *chain, struct ip_fw *f, u_int hlen,
struct ip_fw;
void ipfw_log(struct ip_fw_chain *chain, struct ip_fw *f, u_int hlen,
int ipfw_dyn_install_state(struct ip_fw_chain *chain, struct ip_fw *rule,
struct ip_fw *ipfw_dyn_lookup_state(const struct ip_fw_args *args,
int ipfw_is_dyn_rule(struct ip_fw *rule);
struct ip_fw *next; /* linked list of deleted rules */
struct ip_fw **map; /* array of rule ptrs to ease lookup */
struct ip_fw *default_rule;
struct ip_fw *krule; /* resulting rule pointer */
#define RULEKSIZE1(r) roundup2((sizeof(struct ip_fw) + (r)->cmd_len*4 - 4), 8)
int ipfw_add_protected_rule(struct ip_fw_chain *chain, struct ip_fw *rule);
void ipfw_reap_add(struct ip_fw_chain *chain, struct ip_fw **head,
struct ip_fw *rule);
void ipfw_reap_rules(struct ip_fw *head);
struct ip_fw *ipfw_alloc_rule(struct ip_fw_chain *chain, size_t rulesize);
void ipfw_free_rule(struct ip_fw *rule);
int ipfw_match_range(struct ip_fw *rule, ipfw_range_tlv *rt);
int ipfw_reset_eaction(struct ip_fw_chain *ch, struct ip_fw *rule,
struct ip_fw *rule;
static int ref_rule_objects(struct ip_fw_chain *ch, struct ip_fw *rule,
static void unref_rule_objects(struct ip_fw_chain *chain, struct ip_fw *rule);
struct ip_fw *krule;
mark_rule_objects(struct ip_fw_chain *ch, struct ip_fw *rule,
struct ip_fw *
struct ip_fw *rule;
struct ip_fw *rule;
ipfw_free_rule(struct ip_fw *rule)
unref_rule_objects(struct ip_fw_chain *ch, struct ip_fw *rule)
ref_rule_objects(struct ip_fw_chain *ch, struct ip_fw *rule,
struct ip_fw *r;
update_skipto_cache(struct ip_fw_chain *chain, struct ip_fw **map)
struct ip_fw *krule;
static struct ip_fw **
swap_map(struct ip_fw_chain *chain, struct ip_fw **new_map, int new_len)
struct ip_fw **old_map;
export_cntr1_base(struct ip_fw *krule, struct ip_fw_bcounter *cntr)
export_rule1(struct ip_fw *krule, caddr_t data, int len, int rcntrs)
struct ip_fw *krule;
struct ip_fw **map; /* the new array of pointers */
map = malloc((chain->n_rules + count) * sizeof(struct ip_fw *),
(rule_idx - last_rule_idx) * sizeof(struct ip_fw *));
(chain->n_rules - last_rule_idx) * sizeof(struct ip_fw *));
ipfw_add_protected_rule(struct ip_fw_chain *chain, struct ip_fw *rule)
struct ip_fw **map;
map = malloc((chain->n_rules + 1) * sizeof(struct ip_fw *),
chain->n_rules * sizeof(struct ip_fw *));
ipfw_reap_add(struct ip_fw_chain *chain, struct ip_fw **head,
struct ip_fw *rule)
ipfw_reap_rules(struct ip_fw *head)
struct ip_fw *rule;
ipfw_match_range(struct ip_fw *rule, ipfw_range_tlv *rt)
struct ip_fw *reap, *rule, **map;
map = malloc(chain->n_rules * sizeof(struct ip_fw *),
bcopy(chain->map, map, start * sizeof(struct ip_fw *));
(chain->n_rules - end) * sizeof(struct ip_fw *));
struct ip_fw *rule;
struct ip_fw *rule;
ipfw_get_action(struct ip_fw *rule)
clear_counters(struct ip_fw *rule, int log_only)
struct ip_fw *rule;
struct ip_fw *rule;
int ipfw_mark_table_kidx(struct ip_fw_chain *chain, struct ip_fw *rule,
void ipfw_unref_rule_tables(struct ip_fw_chain *chain, struct ip_fw *rule);