Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
#define PFCTL_ANCHOR_STACK_DEPTH 64 | #define PFCTL_ANCHOR_STACK_DEPTH 64 | ||||
struct pfctl_anchor *astack[PFCTL_ANCHOR_STACK_DEPTH]; | struct pfctl_anchor *astack[PFCTL_ANCHOR_STACK_DEPTH]; | ||||
struct pfioc_pooladdr paddr; | struct pfioc_pooladdr paddr; | ||||
struct pfioc_altq *paltq; | struct pfioc_altq *paltq; | ||||
struct pfioc_queue *pqueue; | struct pfioc_queue *pqueue; | ||||
struct pfr_buffer *trans; | struct pfr_buffer *trans; | ||||
struct pfctl_anchor *anchor, *alast; | struct pfctl_anchor *anchor, *alast; | ||||
int eth_nr; | int eth_nr; | ||||
struct pfctl_eth_rules eth_rules; | struct pfctl_eth_anchor *eanchor, *ealast; | ||||
struct pfctl_eth_anchor *eastack[PFCTL_ANCHOR_STACK_DEPTH]; | |||||
u_int32_t eth_ticket; | u_int32_t eth_ticket; | ||||
const char *ruleset; | const char *ruleset; | ||||
/* 'set foo' options */ | /* 'set foo' options */ | ||||
u_int32_t timeout[PFTM_MAX]; | u_int32_t timeout[PFTM_MAX]; | ||||
u_int32_t limit[PF_LIMIT_MAX]; | u_int32_t limit[PF_LIMIT_MAX]; | ||||
u_int32_t debug; | u_int32_t debug; | ||||
u_int32_t hostid; | u_int32_t hostid; | ||||
▲ Show 20 Lines • Show All 166 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
TAILQ_HEAD(pf_opt_queue, pf_opt_rule); | TAILQ_HEAD(pf_opt_queue, pf_opt_rule); | ||||
int pfctl_rules(int, char *, int, int, char *, struct pfr_buffer *); | int pfctl_rules(int, char *, int, int, char *, struct pfr_buffer *); | ||||
int pfctl_optimize_ruleset(struct pfctl *, struct pfctl_ruleset *); | int pfctl_optimize_ruleset(struct pfctl *, struct pfctl_ruleset *); | ||||
int pfctl_append_rule(struct pfctl *, struct pfctl_rule *, const char *); | int pfctl_append_rule(struct pfctl *, struct pfctl_rule *, const char *); | ||||
int pfctl_append_eth_rule(struct pfctl *, struct pfctl_eth_rule *, | |||||
const char *); | |||||
int pfctl_add_altq(struct pfctl *, struct pf_altq *); | int pfctl_add_altq(struct pfctl *, struct pf_altq *); | ||||
int pfctl_add_pool(struct pfctl *, struct pfctl_pool *, sa_family_t); | int pfctl_add_pool(struct pfctl *, struct pfctl_pool *, sa_family_t); | ||||
void pfctl_move_pool(struct pfctl_pool *, struct pfctl_pool *); | void pfctl_move_pool(struct pfctl_pool *, struct pfctl_pool *); | ||||
void pfctl_clear_pool(struct pfctl_pool *); | void pfctl_clear_pool(struct pfctl_pool *); | ||||
int pfctl_set_timeout(struct pfctl *, const char *, int, int); | int pfctl_set_timeout(struct pfctl *, const char *, int, int); | ||||
int pfctl_set_optimization(struct pfctl *, const char *); | int pfctl_set_optimization(struct pfctl *, const char *); | ||||
int pfctl_set_limit(struct pfctl *, const char *, unsigned int); | int pfctl_set_limit(struct pfctl *, const char *, unsigned int); | ||||
int pfctl_set_logif(struct pfctl *, char *); | int pfctl_set_logif(struct pfctl *, char *); | ||||
int pfctl_set_hostid(struct pfctl *, u_int32_t); | int pfctl_set_hostid(struct pfctl *, u_int32_t); | ||||
int pfctl_set_debug(struct pfctl *, char *); | int pfctl_set_debug(struct pfctl *, char *); | ||||
int pfctl_set_interface_flags(struct pfctl *, char *, int, int); | int pfctl_set_interface_flags(struct pfctl *, char *, int, int); | ||||
int pfctl_cfg_syncookies(struct pfctl *, uint8_t, struct pfctl_watermarks *); | int pfctl_cfg_syncookies(struct pfctl *, uint8_t, struct pfctl_watermarks *); | ||||
int parse_config(char *, struct pfctl *); | int parse_config(char *, struct pfctl *); | ||||
int parse_flags(char *); | int parse_flags(char *); | ||||
int pfctl_load_anchors(int, struct pfctl *, struct pfr_buffer *); | int pfctl_load_anchors(int, struct pfctl *, struct pfr_buffer *); | ||||
void print_pool(struct pfctl_pool *, u_int16_t, u_int16_t, sa_family_t, int); | void print_pool(struct pfctl_pool *, u_int16_t, u_int16_t, sa_family_t, int); | ||||
void print_src_node(struct pf_src_node *, int); | void print_src_node(struct pf_src_node *, int); | ||||
void print_eth_rule(struct pfctl_eth_rule *, int); | void print_eth_rule(struct pfctl_eth_rule *, const char *, int); | ||||
void print_rule(struct pfctl_rule *, const char *, int, int); | void print_rule(struct pfctl_rule *, const char *, int, int); | ||||
void print_tabledef(const char *, int, int, struct node_tinithead *); | void print_tabledef(const char *, int, int, struct node_tinithead *); | ||||
void print_status(struct pfctl_status *, struct pfctl_syncookies *, int); | void print_status(struct pfctl_status *, struct pfctl_syncookies *, int); | ||||
void print_running(struct pfctl_status *); | void print_running(struct pfctl_status *); | ||||
int eval_pfaltq(struct pfctl *, struct pf_altq *, struct node_queue_bw *, | int eval_pfaltq(struct pfctl *, struct pf_altq *, struct node_queue_bw *, | ||||
struct node_queue_opt *); | struct node_queue_opt *); | ||||
int eval_pfqueue(struct pfctl *, struct pf_altq *, struct node_queue_bw *, | int eval_pfqueue(struct pfctl *, struct pf_altq *, struct node_queue_bw *, | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |