Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | #define PFCTL_ANCHOR_STACK_DEPTH 64 | ||||
/* '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; | ||||
char *ifname; | char *ifname; | ||||
bool keep_counters; | bool keep_counters; | ||||
u_int8_t syncookies; | |||||
u_int8_t timeout_set[PFTM_MAX]; | u_int8_t timeout_set[PFTM_MAX]; | ||||
u_int8_t limit_set[PF_LIMIT_MAX]; | u_int8_t limit_set[PF_LIMIT_MAX]; | ||||
u_int8_t debug_set; | u_int8_t debug_set; | ||||
u_int8_t hostid_set; | u_int8_t hostid_set; | ||||
u_int8_t ifname_set; | u_int8_t ifname_set; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | |||||
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_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 pf_status *, int); | void print_status(struct pf_status *, struct pfctl_syncookies *, int); | ||||
void print_running(struct pf_status *); | void print_running(struct pf_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 *, | ||||
struct node_queue_opt *); | struct node_queue_opt *); | ||||
void print_altq(const struct pf_altq *, unsigned, struct node_queue_bw *, | void print_altq(const struct pf_altq *, unsigned, struct node_queue_bw *, | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |