pfctl
void mv_tables(struct pfctl *, struct pfr_ktablehead *,
static bool pfctl_setup_anchor(struct pfctl_rule *, struct pfctl *, char *);
parse_config(char *filename, struct pfctl *xpf)
static struct pfctl *pf = NULL;
mv_tables(struct pfctl *pf, struct pfr_ktablehead *ktables,
pfctl_load_anchors(int dev, struct pfctl *pf)
pfctl_setup_anchor(struct pfctl_rule *r, struct pfctl *pf, char *anchorname)
pfctl_eth_anchor_setup(struct pfctl *pf, struct pfctl_eth_rule *r,
int pfctl_load_logif(struct pfctl *, char *);
int pfctl_load_hostid(struct pfctl *, u_int32_t);
int pfctl_load_reassembly(struct pfctl *, u_int32_t);
int pfctl_load_syncookies(struct pfctl *, u_int8_t);
int pfctl_ruleset_trans(struct pfctl *, char *, struct pfctl_anchor *, bool);
void pfctl_load_statelims(struct pfctl *);
void pfctl_load_statelim(struct pfctl *, struct pfctl_statelim *);
void pfctl_load_sourcelims(struct pfctl *);
void pfctl_load_sourcelim(struct pfctl *, struct pfctl_source_lim *);
int pfctl_eth_ruleset_trans(struct pfctl *, char *,
int pfctl_load_eth_ruleset(struct pfctl *, char *,
int pfctl_load_eth_rule(struct pfctl *, char *, struct pfctl_eth_rule *,
int pfctl_load_ruleset(struct pfctl *, char *,
int pfctl_load_rule(struct pfctl *, char *, struct pfctl_rule *, int);
pfctl_add_pool(struct pfctl *pf, struct pfctl_pool *p, int which)
pfctl_append_rule(struct pfctl *pf, struct pfctl_rule *r)
pfctl_append_eth_rule(struct pfctl *pf, struct pfctl_eth_rule *r,
pfctl_eth_ruleset_trans(struct pfctl *pf, char *path,
pfctl_ruleset_trans(struct pfctl *pf, char *path, struct pfctl_anchor *a, bool do_eth)
pfctl_load_statelim(struct pfctl *pf, struct pfctl_statelim *stlim)
pfctl_load_statelims(struct pfctl *pf)
pfctl_load_sourcelim(struct pfctl *pf, struct pfctl_source_lim *srlim)
pfctl_load_sourcelims(struct pfctl *pf)
pfctl_load_eth_ruleset(struct pfctl *pf, char *path,
pfctl_load_eth_rule(struct pfctl *pf, char *path, struct pfctl_eth_rule *r,
pfctl_load_tables(struct pfctl *pf, char *path, struct pfctl_anchor *a,
pfctl_load_ruleset(struct pfctl *pf, char *path, struct pfctl_ruleset *rs,
pfctl_load_rule(struct pfctl *pf, char *path, struct pfctl_rule *r, int depth)
pfctl_add_altq(struct pfctl *pf, struct pf_altq *a)
struct pfctl pf;
pfctl_init_options(struct pfctl *pf)
pfctl_load_options(struct pfctl *pf)
pfctl_apply_limit(struct pfctl *pf, const char *opt, unsigned int limit)
pfctl_load_limit(struct pfctl *pf, unsigned int index, unsigned int limit)
pfctl_apply_timeout(struct pfctl *pf, const char *opt, int seconds, int quiet)
pfctl_load_timeout(struct pfctl *pf, unsigned int timeout, unsigned int seconds)
pfctl_set_reassembly(struct pfctl *pf, int on, int nodf)
pfctl_set_optimization(struct pfctl *pf, const char *opt)
pfctl_set_logif(struct pfctl *pf, char *ifname)
pfctl_load_logif(struct pfctl *pf, char *ifname)
pfctl_set_hostid(struct pfctl *pf, u_int32_t hostid)
pfctl_load_hostid(struct pfctl *pf, u_int32_t hostid)
pfctl_load_reassembly(struct pfctl *pf, u_int32_t reassembly)
pfctl_load_syncookies(struct pfctl *pf, u_int8_t val)
pfctl_cfg_syncookies(struct pfctl *pf, uint8_t val, struct pfctl_watermarks *w)
pfctl_do_set_debug(struct pfctl *pf, char *d)
pfctl_load_debug(struct pfctl *pf, unsigned int level)
pfctl_set_interface_flags(struct pfctl *pf, char *ifname, int flags, int how)
struct pfctl pf;
pfctl_add_statelim(struct pfctl *pf, struct pfctl_statelim *stlim)
pfctl_get_statelim_id(struct pfctl *pf, uint32_t id)
pfctl_get_statelim_nm(struct pfctl *pf, const char *name)
pfctl_add_sourcelim(struct pfctl *pf, struct pfctl_sourcelim *srlim)
pfctl_get_sourcelim_id(struct pfctl *pf, uint32_t id)
pfctl_get_sourcelim_nm(struct pfctl *pf, const char *name)
pfctl_adjust_skip_ifaces(struct pfctl *pf)
void pfctl_adjust_skip_ifaces(struct pfctl *);
void pfctl_init_options(struct pfctl *);
int pfctl_load_options(struct pfctl *);
int pfctl_load_limit(struct pfctl *, unsigned int, unsigned int);
int pfctl_load_timeout(struct pfctl *, unsigned int, unsigned int);
int pfctl_load_debug(struct pfctl *, unsigned int);
int pfctl_eth_anchor_setup(struct pfctl *,
struct pfctl;
eval_pfaltq(struct pfctl *pf, struct pf_altq *pa, struct node_queue_bw *bw,
eval_pfqueue(struct pfctl *pf, struct pf_altq *pa, struct node_queue_bw *bw,
eval_pfqueue_cbq(struct pfctl *pf, struct pf_altq *pa, struct pfctl_altq *if_ppa)
cbq_compute_idletime(struct pfctl *pf, struct pf_altq *pa)
static int eval_pfqueue_cbq(struct pfctl *, struct pf_altq *,
eval_pfqueue_priq(struct pfctl *pf, struct pf_altq *pa, struct pfctl_altq *if_ppa)
static int cbq_compute_idletime(struct pfctl *, struct pf_altq *);
eval_pfqueue_hfsc(struct pfctl *pf, struct pf_altq *pa, struct pfctl_altq *if_ppa,
static int eval_pfqueue_priq(struct pfctl *, struct pf_altq *,
static int eval_pfqueue_hfsc(struct pfctl *, struct pf_altq *,
eval_pfqueue_fairq(struct pfctl *pf __unused, struct pf_altq *pa,
static int eval_pfqueue_fairq(struct pfctl *, struct pf_altq *,
add_opt_table(struct pfctl *pf, struct pf_opt_tbl **tbl, sa_family_t af,
pf_opt_create_table(struct pfctl *pf, struct pf_opt_tbl *tbl)
construct_superblocks(struct pfctl *pf, struct pf_opt_queue *opt_queue,
superblock_free(struct pfctl *pf, struct superblock *block)
int add_opt_table(struct pfctl *, struct pf_opt_tbl **, sa_family_t,
int block_feedback(struct pfctl *, struct superblock *);
int combine_rules(struct pfctl *, struct superblock *);
int construct_superblocks(struct pfctl *, struct pf_opt_queue *,
int load_feedback_profile(struct pfctl *, struct superblocks *);
int optimize_superblock(struct pfctl *, struct superblock *);
int pf_opt_create_table(struct pfctl *, struct pf_opt_tbl *);
int remove_identical_rules(struct pfctl *, struct superblock *);
int reorder_rules(struct pfctl *, struct superblock *, int);
void superblock_free(struct pfctl *, struct superblock *);
pfctl_optimize_ruleset(struct pfctl *pf, struct pfctl_ruleset *rs)
optimize_superblock(struct pfctl *pf, struct superblock *block)
remove_identical_rules(struct pfctl *pf, struct superblock *block)
combine_rules(struct pfctl *pf, struct superblock *block)
reorder_rules(struct pfctl *pf, struct superblock *block, int depth)
block_feedback(struct pfctl *pf, struct superblock *block)
load_feedback_profile(struct pfctl *pf, struct superblocks *superblocks)
int pfctl_optimize_ruleset(struct pfctl *, struct pfctl_ruleset *);
void pfctl_append_rule(struct pfctl *, struct pfctl_rule *);
int pfctl_append_eth_rule(struct pfctl *, struct pfctl_eth_rule *,
int pfctl_add_altq(struct pfctl *, struct pf_altq *);
int pfctl_add_pool(struct pfctl *, struct pfctl_pool *, int);
int pfctl_add_statelim(struct pfctl *, struct pfctl_statelim *);
pfctl_get_statelim_id(struct pfctl *, uint32_t);
pfctl_get_statelim_nm(struct pfctl *, const char *);
int pfctl_add_sourcelim(struct pfctl *, struct pfctl_sourcelim *);
pfctl_get_sourcelim_id(struct pfctl *, uint32_t);
pfctl_get_sourcelim_nm(struct pfctl *, const char *);
int pfctl_apply_timeout(struct pfctl *, const char *, int, int);
int pfctl_set_reassembly(struct pfctl *, int, int);
int pfctl_set_optimization(struct pfctl *, const char *);
int pfctl_apply_limit(struct pfctl *, const char *, unsigned int);
int pfctl_set_logif(struct pfctl *, char *);
void pfctl_set_hostid(struct pfctl *, u_int32_t);
int pfctl_do_set_debug(struct pfctl *, char *);
int pfctl_set_interface_flags(struct pfctl *, char *, int, int);
int pfctl_cfg_syncookies(struct pfctl *, uint8_t, struct pfctl_watermarks *);
int parse_config(char *, struct pfctl *);
int pfctl_load_anchors(int, struct pfctl *);
int eval_pfaltq(struct pfctl *, struct pf_altq *, struct node_queue_bw *,
int eval_pfqueue(struct pfctl *, struct pf_altq *, struct node_queue_bw *,