Changeset View
Changeset View
Standalone View
Standalone View
sys/net/pfvar.h
Show First 20 Lines • Show All 970 Lines • ▼ Show 20 Lines | struct pf_state_peer_export { | ||||
uint8_t state; /* active state level */ | uint8_t state; /* active state level */ | ||||
uint8_t wscale; /* window scaling factor */ | uint8_t wscale; /* window scaling factor */ | ||||
uint8_t dummy[6]; | uint8_t dummy[6]; | ||||
}; | }; | ||||
_Static_assert(sizeof(struct pf_state_peer_export) == 32, "size incorrect"); | _Static_assert(sizeof(struct pf_state_peer_export) == 32, "size incorrect"); | ||||
struct pf_state_export { | struct pf_state_export { | ||||
uint64_t version; | uint64_t version; | ||||
#define PF_STATE_VERSION 20210706 | #define PF_STATE_VERSION 20230404 | ||||
uint64_t id; | uint64_t id; | ||||
char ifname[IFNAMSIZ]; | char ifname[IFNAMSIZ]; | ||||
char orig_ifname[IFNAMSIZ]; | char orig_ifname[IFNAMSIZ]; | ||||
struct pf_state_key_export key[2]; | struct pf_state_key_export key[2]; | ||||
struct pf_state_peer_export src; | struct pf_state_peer_export src; | ||||
struct pf_state_peer_export dst; | struct pf_state_peer_export dst; | ||||
struct pf_addr rt_addr; | struct pf_addr rt_addr; | ||||
uint32_t rule; | uint32_t rule; | ||||
Show All 10 Lines | #define PF_STATE_VERSION 20230404 | ||||
uint8_t proto; | uint8_t proto; | ||||
uint8_t direction; | uint8_t direction; | ||||
uint8_t log; | uint8_t log; | ||||
uint8_t state_flags_compat; | uint8_t state_flags_compat; | ||||
uint8_t timeout; | uint8_t timeout; | ||||
uint8_t sync_flags; | uint8_t sync_flags; | ||||
uint8_t updates; | uint8_t updates; | ||||
uint16_t state_flags; | uint16_t state_flags; | ||||
uint16_t qid; | |||||
uint16_t pqid; | |||||
uint16_t dnpipe; | |||||
uint16_t dnrpipe; | |||||
int32_t rtableid; | |||||
uint8_t min_ttl; | |||||
uint8_t set_tos; | |||||
uint16_t max_mss; | |||||
uint8_t set_prio[2]; | |||||
uint8_t rt; | |||||
char rt_ifname[IFNAMSIZ]; | |||||
uint8_t spare[110]; | uint8_t spare[72]; | ||||
}; | }; | ||||
_Static_assert(sizeof(struct pf_state_export) == 384, "size incorrect"); | _Static_assert(sizeof(struct pf_state_export) == 384, "size incorrect"); | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
struct pf_kstate { | struct pf_kstate { | ||||
/* | /* | ||||
* Area shared with pf_state_cmp | * Area shared with pf_state_cmp | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,467 Lines • Show Last 20 Lines |