Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.h
Show First 20 Lines • Show All 95 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 syncookies; | ||||
u_int8_t syncookieswat[2]; /* lowat, highwat, in % */ | |||||
u_int8_t syncookieswat_set; | |||||
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 83 Lines • ▼ Show 20 Lines | struct { | ||||
int children; | int children; | ||||
int root_classes; | int root_classes; | ||||
int default_classes; | int default_classes; | ||||
struct gen_sc lssc; | struct gen_sc lssc; | ||||
struct gen_sc rtsc; | struct gen_sc rtsc; | ||||
} meta; | } meta; | ||||
}; | }; | ||||
struct pfctl_watermarks { | |||||
uint32_t hi; | |||||
uint32_t lo; | |||||
}; | |||||
#ifdef __FreeBSD__ | #ifdef __FreeBSD__ | ||||
/* | /* | ||||
* XXX | * XXX | ||||
* Absolutely this is not correct location to define this. | * Absolutely this is not correct location to define this. | ||||
* Should we use an another sperate header file? | * Should we use an another sperate header file? | ||||
*/ | */ | ||||
#define SIMPLEQ_HEAD STAILQ_HEAD | #define SIMPLEQ_HEAD STAILQ_HEAD | ||||
#define SIMPLEQ_HEAD_INITIALIZER STAILQ_HEAD_INITIALIZER | #define SIMPLEQ_HEAD_INITIALIZER STAILQ_HEAD_INITIALIZER | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
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 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); | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |