Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/ip_fw_private.h
Show First 20 Lines • Show All 735 Lines • ▼ Show 20 Lines | |||||
/* In ip_fw_table.c */ | /* In ip_fw_table.c */ | ||||
struct table_info; | struct table_info; | ||||
typedef int (table_lookup_t)(struct table_info *ti, void *key, uint32_t keylen, | typedef int (table_lookup_t)(struct table_info *ti, void *key, uint32_t keylen, | ||||
uint32_t *val); | uint32_t *val); | ||||
int ipfw_lookup_table(struct ip_fw_chain *ch, uint16_t tbl, in_addr_t addr, | int ipfw_lookup_table(struct ip_fw_chain *ch, uint16_t tbl, in_addr_t addr, | ||||
uint32_t *val); | uint32_t *val); | ||||
int ipfw_lookup_table_extended(struct ip_fw_chain *ch, uint16_t tbl, uint16_t plen, | int ipfw_lookup_table_extended(struct ip_fw_chain *ch, uint16_t tbl, | ||||
void *paddr, uint32_t *val); | uint16_t plen, void *paddr, uint32_t *val); | ||||
struct named_object *ipfw_objhash_lookup_table_kidx(struct ip_fw_chain *ch, | |||||
uint16_t kidx); | |||||
int ipfw_ref_table(struct ip_fw_chain *ch, ipfw_obj_ntlv *ntlv, uint16_t *kidx); | |||||
void ipfw_unref_table(struct ip_fw_chain *ch, uint16_t kidx); | |||||
int ipfw_init_tables(struct ip_fw_chain *ch, int first); | int ipfw_init_tables(struct ip_fw_chain *ch, int first); | ||||
int ipfw_resize_tables(struct ip_fw_chain *ch, unsigned int ntables); | int ipfw_resize_tables(struct ip_fw_chain *ch, unsigned int ntables); | ||||
int ipfw_switch_tables_namespace(struct ip_fw_chain *ch, unsigned int nsets); | int ipfw_switch_tables_namespace(struct ip_fw_chain *ch, unsigned int nsets); | ||||
void ipfw_destroy_tables(struct ip_fw_chain *ch, int last); | void ipfw_destroy_tables(struct ip_fw_chain *ch, int last); | ||||
/* In ip_fw_nat.c -- XXX to be moved to ip_var.h */ | /* In ip_fw_nat.c -- XXX to be moved to ip_var.h */ | ||||
extern struct cfg_nat *(*lookup_nat_ptr)(struct nat_list *, int); | extern struct cfg_nat *(*lookup_nat_ptr)(struct nat_list *, int); | ||||
Show All 33 Lines |