Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/pfvar.h
Show All 35 Lines | |||||
#define _NET_PFVAR_H_ | #define _NET_PFVAR_H_ | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/counter.h> | #include <sys/counter.h> | ||||
#include <sys/cpuset.h> | #include <sys/cpuset.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/refcount.h> | #include <sys/refcount.h> | ||||
#include <sys/sysctl.h> | |||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/rmlock.h> | #include <sys/rmlock.h> | ||||
#include <sys/tree.h> | #include <sys/tree.h> | ||||
#include <vm/uma.h> | #include <vm/uma.h> | ||||
#include <net/radix.h> | #include <net/radix.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
Show All 38 Lines | union { | ||||
int tblcnt; | int tblcnt; | ||||
} p; | } p; | ||||
u_int8_t type; /* PF_ADDR_* */ | u_int8_t type; /* PF_ADDR_* */ | ||||
u_int8_t iflags; /* PFI_AFLAG_* */ | u_int8_t iflags; /* PFI_AFLAG_* */ | ||||
}; | }; | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
SYSCTL_DECL(_net_pf); | |||||
MALLOC_DECLARE(M_PFHASH); | |||||
struct pfi_dynaddr { | struct pfi_dynaddr { | ||||
TAILQ_ENTRY(pfi_dynaddr) entry; | TAILQ_ENTRY(pfi_dynaddr) entry; | ||||
struct pf_addr pfid_addr4; | struct pf_addr pfid_addr4; | ||||
struct pf_addr pfid_mask4; | struct pf_addr pfid_mask4; | ||||
struct pf_addr pfid_addr6; | struct pf_addr pfid_addr6; | ||||
struct pf_addr pfid_mask6; | struct pf_addr pfid_mask6; | ||||
struct pfr_ktable *pfid_kt; | struct pfr_ktable *pfid_kt; | ||||
struct pfi_kif *pfid_kif; | struct pfi_kif *pfid_kif; | ||||
▲ Show 20 Lines • Show All 1,490 Lines • ▼ Show 20 Lines | |||||
VNET_DECLARE(void *, pf_swi_cookie); | VNET_DECLARE(void *, pf_swi_cookie); | ||||
#define V_pf_swi_cookie VNET(pf_swi_cookie) | #define V_pf_swi_cookie VNET(pf_swi_cookie) | ||||
VNET_DECLARE(uint64_t, pf_stateid[MAXCPU]); | VNET_DECLARE(uint64_t, pf_stateid[MAXCPU]); | ||||
#define V_pf_stateid VNET(pf_stateid) | #define V_pf_stateid VNET(pf_stateid) | ||||
TAILQ_HEAD(pf_altqqueue, pf_altq); | TAILQ_HEAD(pf_altqqueue, pf_altq); | ||||
VNET_DECLARE(struct pf_altqqueue, pf_altqs[2]); | VNET_DECLARE(struct pf_altqqueue, pf_altqs[4]); | ||||
#define V_pf_altqs VNET(pf_altqs) | #define V_pf_altqs VNET(pf_altqs) | ||||
VNET_DECLARE(struct pf_palist, pf_pabuf); | VNET_DECLARE(struct pf_palist, pf_pabuf); | ||||
#define V_pf_pabuf VNET(pf_pabuf) | #define V_pf_pabuf VNET(pf_pabuf) | ||||
VNET_DECLARE(u_int32_t, ticket_altqs_active); | VNET_DECLARE(u_int32_t, ticket_altqs_active); | ||||
#define V_ticket_altqs_active VNET(ticket_altqs_active) | #define V_ticket_altqs_active VNET(ticket_altqs_active) | ||||
VNET_DECLARE(u_int32_t, ticket_altqs_inactive); | VNET_DECLARE(u_int32_t, ticket_altqs_inactive); | ||||
#define V_ticket_altqs_inactive VNET(ticket_altqs_inactive) | #define V_ticket_altqs_inactive VNET(ticket_altqs_inactive) | ||||
VNET_DECLARE(int, altqs_inactive_open); | VNET_DECLARE(int, altqs_inactive_open); | ||||
#define V_altqs_inactive_open VNET(altqs_inactive_open) | #define V_altqs_inactive_open VNET(altqs_inactive_open) | ||||
VNET_DECLARE(u_int32_t, ticket_pabuf); | VNET_DECLARE(u_int32_t, ticket_pabuf); | ||||
#define V_ticket_pabuf VNET(ticket_pabuf) | #define V_ticket_pabuf VNET(ticket_pabuf) | ||||
VNET_DECLARE(struct pf_altqqueue *, pf_altqs_active); | VNET_DECLARE(struct pf_altqqueue *, pf_altqs_active); | ||||
#define V_pf_altqs_active VNET(pf_altqs_active) | #define V_pf_altqs_active VNET(pf_altqs_active) | ||||
VNET_DECLARE(struct pf_altqqueue *, pf_altq_ifs_active); | |||||
#define V_pf_altq_ifs_active VNET(pf_altq_ifs_active) | |||||
VNET_DECLARE(struct pf_altqqueue *, pf_altqs_inactive); | VNET_DECLARE(struct pf_altqqueue *, pf_altqs_inactive); | ||||
#define V_pf_altqs_inactive VNET(pf_altqs_inactive) | #define V_pf_altqs_inactive VNET(pf_altqs_inactive) | ||||
VNET_DECLARE(struct pf_altqqueue *, pf_altq_ifs_inactive); | |||||
#define V_pf_altq_ifs_inactive VNET(pf_altq_ifs_inactive) | |||||
VNET_DECLARE(struct pf_rulequeue, pf_unlinked_rules); | VNET_DECLARE(struct pf_rulequeue, pf_unlinked_rules); | ||||
#define V_pf_unlinked_rules VNET(pf_unlinked_rules) | #define V_pf_unlinked_rules VNET(pf_unlinked_rules) | ||||
void pf_initialize(void); | void pf_initialize(void); | ||||
void pf_mtag_initialize(void); | void pf_mtag_initialize(void); | ||||
void pf_mtag_cleanup(void); | void pf_mtag_cleanup(void); | ||||
void pf_cleanup(void); | void pf_cleanup(void); | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |