Changeset View
Changeset View
Standalone View
Standalone View
sys/net/pfvar.h
Show First 20 Lines • Show All 1,380 Lines • ▼ Show 20 Lines | |||||
enum pf_syncookies_mode { | enum pf_syncookies_mode { | ||||
PF_SYNCOOKIES_NEVER = 0, | PF_SYNCOOKIES_NEVER = 0, | ||||
PF_SYNCOOKIES_ALWAYS = 1, | PF_SYNCOOKIES_ALWAYS = 1, | ||||
PF_SYNCOOKIES_ADAPTIVE = 2, | PF_SYNCOOKIES_ADAPTIVE = 2, | ||||
PF_SYNCOOKIES_MODE_MAX = PF_SYNCOOKIES_ADAPTIVE | PF_SYNCOOKIES_MODE_MAX = PF_SYNCOOKIES_ADAPTIVE | ||||
}; | }; | ||||
#define PF_SYNCOOKIES_HIWATPCT 25 | |||||
#define PF_SYNCOOKIES_LOWATPCT (PF_SYNCOOKIES_HIWATPCT / 2) | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
struct pf_kstatus { | struct pf_kstatus { | ||||
counter_u64_t counters[PFRES_MAX]; /* reason for passing/dropping */ | counter_u64_t counters[PFRES_MAX]; /* reason for passing/dropping */ | ||||
counter_u64_t lcounters[KLCNT_MAX]; /* limit counters */ | counter_u64_t lcounters[KLCNT_MAX]; /* limit counters */ | ||||
struct pf_counter_u64 fcounters[FCNT_MAX]; /* state operation counters */ | struct pf_counter_u64 fcounters[FCNT_MAX]; /* state operation counters */ | ||||
counter_u64_t scounters[SCNT_MAX]; /* src_node operation counters */ | counter_u64_t scounters[SCNT_MAX]; /* src_node operation counters */ | ||||
uint32_t states; | uint32_t states; | ||||
uint32_t src_nodes; | uint32_t src_nodes; | ||||
▲ Show 20 Lines • Show All 801 Lines • Show Last 20 Lines |