Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.h
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | struct pfctl { | ||||
| int tdirty; /* kernel dirty */ | int tdirty; /* kernel dirty */ | ||||
| #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; | |||||
| struct pfctl_eth_rules eth_rules; | |||||
| 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; | ||||
| char *ifname; | char *ifname; | ||||
| ▲ Show 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | |||||
| 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_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 All 36 Lines | struct pf_timeout { | ||||
| int timeout; | int timeout; | ||||
| }; | }; | ||||
| #define PFCTL_FLAG_FILTER 0x02 | #define PFCTL_FLAG_FILTER 0x02 | ||||
| #define PFCTL_FLAG_NAT 0x04 | #define PFCTL_FLAG_NAT 0x04 | ||||
| #define PFCTL_FLAG_OPTION 0x08 | #define PFCTL_FLAG_OPTION 0x08 | ||||
| #define PFCTL_FLAG_ALTQ 0x10 | #define PFCTL_FLAG_ALTQ 0x10 | ||||
| #define PFCTL_FLAG_TABLE 0x20 | #define PFCTL_FLAG_TABLE 0x20 | ||||
| #define PFCTL_FLAG_ETH 0x40 | |||||
| extern const struct pf_timeout pf_timeouts[]; | extern const struct pf_timeout pf_timeouts[]; | ||||
| void set_ipmask(struct node_host *, u_int8_t); | void set_ipmask(struct node_host *, u_int8_t); | ||||
| int check_netmask(struct node_host *, sa_family_t); | int check_netmask(struct node_host *, sa_family_t); | ||||
| int unmask(struct pf_addr *, sa_family_t); | int unmask(struct pf_addr *, sa_family_t); | ||||
| void ifa_load(void); | void ifa_load(void); | ||||
| int get_query_socket(void); | int get_query_socket(void); | ||||
| Show All 10 Lines | |||||