Changeset View
Changeset View
Standalone View
Standalone View
sys/net/pfvar.h
Show First 20 Lines • Show All 1,566 Lines • ▼ Show 20 Lines | struct pf_keyhash { | ||||
struct mtx lock; | struct mtx lock; | ||||
}; | }; | ||||
struct pf_idhash { | struct pf_idhash { | ||||
LIST_HEAD(, pf_kstate) states; | LIST_HEAD(, pf_kstate) states; | ||||
struct mtx lock; | struct mtx lock; | ||||
}; | }; | ||||
extern u_long pf_ioctl_maxcount; | |||||
extern u_long pf_hashmask; | extern u_long pf_hashmask; | ||||
extern u_long pf_srchashmask; | extern u_long pf_srchashmask; | ||||
#define PF_HASHSIZ (131072) | #define PF_HASHSIZ (131072) | ||||
#define PF_SRCHASHSIZ (PF_HASHSIZ/4) | #define PF_SRCHASHSIZ (PF_HASHSIZ/4) | ||||
VNET_DECLARE(struct pf_keyhash *, pf_keyhash); | VNET_DECLARE(struct pf_keyhash *, pf_keyhash); | ||||
VNET_DECLARE(struct pf_idhash *, pf_idhash); | VNET_DECLARE(struct pf_idhash *, pf_idhash); | ||||
#define V_pf_keyhash VNET(pf_keyhash) | #define V_pf_keyhash VNET(pf_keyhash) | ||||
#define V_pf_idhash VNET(pf_idhash) | #define V_pf_idhash VNET(pf_idhash) | ||||
▲ Show 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | struct mbuf *pf_build_tcp(const struct pf_krule *, sa_family_t, | ||||
u_int16_t); | u_int16_t); | ||||
void pf_send_tcp(const struct pf_krule *, sa_family_t, | void pf_send_tcp(const struct pf_krule *, sa_family_t, | ||||
const struct pf_addr *, const struct pf_addr *, | const struct pf_addr *, const struct pf_addr *, | ||||
u_int16_t, u_int16_t, u_int32_t, u_int32_t, | u_int16_t, u_int16_t, u_int32_t, u_int32_t, | ||||
u_int8_t, u_int16_t, u_int16_t, u_int8_t, int, | u_int8_t, u_int16_t, u_int16_t, u_int8_t, int, | ||||
u_int16_t); | u_int16_t); | ||||
void pf_syncookies_init(void); | void pf_syncookies_init(void); | ||||
int pf_syncookies_setmode(u_int8_t); | |||||
int pf_get_syncookies(struct pfioc_nv *); | int pf_get_syncookies(struct pfioc_nv *); | ||||
int pf_set_syncookies(struct pfioc_nv *); | int pf_set_syncookies(struct pfioc_nv *); | ||||
int pf_synflood_check(struct pf_pdesc *); | int pf_synflood_check(struct pf_pdesc *); | ||||
void pf_syncookie_send(struct mbuf *m, int off, | void pf_syncookie_send(struct mbuf *m, int off, | ||||
struct pf_pdesc *); | struct pf_pdesc *); | ||||
u_int8_t pf_syncookie_validate(struct pf_pdesc *); | u_int8_t pf_syncookie_validate(struct pf_pdesc *); | ||||
struct mbuf * pf_syncookie_recreate_syn(uint8_t, int, | struct mbuf * pf_syncookie_recreate_syn(uint8_t, int, | ||||
struct pf_pdesc *); | struct pf_pdesc *); | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |