Changeset View
Changeset View
Standalone View
Standalone View
sys/net/pfvar.h
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | struct pf_rule_uid { | ||||
u_int8_t op; | u_int8_t op; | ||||
}; | }; | ||||
struct pf_rule_gid { | struct pf_rule_gid { | ||||
uid_t gid[2]; | uid_t gid[2]; | ||||
u_int8_t op; | u_int8_t op; | ||||
}; | }; | ||||
struct pf_rule_ieee8021q_pcp { | |||||
u_int8_t pcp[2]; | |||||
u_int8_t op; | |||||
#define SETPCP_VALID 0x80 /* Set if PCP value in field is valid. */ | |||||
#define SETPCP_PCP_MASK 0x07 /* Mask to retrieve pcp if SETPCP_VALID. */ | |||||
u_int8_t setpcp; | |||||
}; | |||||
struct pf_rule_addr { | struct pf_rule_addr { | ||||
struct pf_addr_wrap addr; | struct pf_addr_wrap addr; | ||||
u_int16_t port[2]; | u_int16_t port[2]; | ||||
u_int8_t neg; | u_int8_t neg; | ||||
u_int8_t port_op; | u_int8_t port_op; | ||||
}; | }; | ||||
struct pf_pooladdr { | struct pf_pooladdr { | ||||
▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | #define PF_TAG_NAME_SIZE 64 | ||||
pf_osfp_t os_fingerprint; | pf_osfp_t os_fingerprint; | ||||
int rtableid; | int rtableid; | ||||
u_int32_t timeout[PFTM_MAX]; | u_int32_t timeout[PFTM_MAX]; | ||||
u_int32_t max_states; | u_int32_t max_states; | ||||
u_int32_t max_src_nodes; | u_int32_t max_src_nodes; | ||||
u_int32_t max_src_states; | u_int32_t max_src_states; | ||||
struct pf_rule_ieee8021q_pcp ieee8021q_pcp; | |||||
u_int32_t max_src_conn; | u_int32_t max_src_conn; | ||||
struct { | struct { | ||||
u_int32_t limit; | u_int32_t limit; | ||||
u_int32_t seconds; | u_int32_t seconds; | ||||
} max_src_conn_rate; | } max_src_conn_rate; | ||||
u_int32_t qid; | u_int32_t qid; | ||||
u_int32_t pqid; | u_int32_t pqid; | ||||
u_int32_t rt_listid; | u_int32_t rt_listid; | ||||
▲ Show 20 Lines • Show All 1,061 Lines • ▼ Show 20 Lines | void pf_change_proto_a(struct mbuf *, void *, u_int16_t *, u_int32_t, | ||||
u_int8_t); | u_int8_t); | ||||
void pf_change_tcp_a(struct mbuf *, void *, u_int16_t *, u_int32_t); | void pf_change_tcp_a(struct mbuf *, void *, u_int16_t *, u_int32_t); | ||||
void pf_send_deferred_syn(struct pf_state *); | void pf_send_deferred_syn(struct pf_state *); | ||||
int pf_match_addr(u_int8_t, struct pf_addr *, struct pf_addr *, | int pf_match_addr(u_int8_t, struct pf_addr *, struct pf_addr *, | ||||
struct pf_addr *, sa_family_t); | struct pf_addr *, sa_family_t); | ||||
int pf_match_addr_range(struct pf_addr *, struct pf_addr *, | int pf_match_addr_range(struct pf_addr *, struct pf_addr *, | ||||
struct pf_addr *, sa_family_t); | struct pf_addr *, sa_family_t); | ||||
int pf_match_port(u_int8_t, u_int16_t, u_int16_t, u_int16_t); | int pf_match_port(u_int8_t, u_int16_t, u_int16_t, u_int16_t); | ||||
int pf_match_ieee8021q_pcp(u_int8_t, u_int8_t, u_int8_t, struct mbuf *); | |||||
int pf_ieee8021q_setpcp(struct mbuf *m, struct pf_rule *r); | |||||
void pf_normalize_init(void); | void pf_normalize_init(void); | ||||
void pf_normalize_cleanup(void); | void pf_normalize_cleanup(void); | ||||
int pf_normalize_tcp(int, struct pfi_kif *, struct mbuf *, int, int, void *, | int pf_normalize_tcp(int, struct pfi_kif *, struct mbuf *, int, int, void *, | ||||
struct pf_pdesc *); | struct pf_pdesc *); | ||||
void pf_normalize_tcp_cleanup(struct pf_state *); | void pf_normalize_tcp_cleanup(struct pf_state *); | ||||
int pf_normalize_tcp_init(struct mbuf *, int, struct pf_pdesc *, | int pf_normalize_tcp_init(struct mbuf *, int, struct pf_pdesc *, | ||||
struct tcphdr *, struct pf_state_peer *, struct pf_state_peer *); | struct tcphdr *, struct pf_state_peer *, struct pf_state_peer *); | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |