Changeset View
Changeset View
Standalone View
Standalone View
sbin/pfctl/pfctl_parser.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | #define FCNT_NAMES { \ | ||||
"searches", \ | "searches", \ | ||||
"inserts", \ | "inserts", \ | ||||
"removals", \ | "removals", \ | ||||
NULL \ | NULL \ | ||||
} | } | ||||
struct pfr_buffer; /* forward definition */ | struct pfr_buffer; /* forward definition */ | ||||
struct pf_eth_rule_addr { | |||||
uint8_t addr[ETHER_ADDR_LEN]; | |||||
uint8_t neg; | |||||
}; | |||||
struct pf_eth_rule { | |||||
uint32_t nr; | |||||
uint8_t quick; | |||||
/* Filter */ | |||||
char ifname[IFNAMSIZ]; | |||||
uint8_t ifnot; | |||||
uint8_t direction; | |||||
uint16_t proto; | |||||
struct pf_eth_rule_addr src, dst; | |||||
/* Stats */ | |||||
uint64_t evaluations; | |||||
uint64_t packets[2]; | |||||
uint64_t bytes[2]; | |||||
/* Action */ | |||||
char qname[PF_QNAME_SIZE]; | |||||
char tagname[PF_TAG_NAME_SIZE]; | |||||
uint8_t action; | |||||
TAILQ_ENTRY(pf_eth_rule) entries; | |||||
}; | |||||
TAILQ_HEAD(pf_eth_rules, pf_eth_rule); | |||||
struct pfctl { | struct pfctl { | ||||
int dev; | int dev; | ||||
int opts; | int opts; | ||||
int optimize; | int optimize; | ||||
int loadopt; | int loadopt; | ||||
int asd; /* anchor stack depth */ | int asd; /* anchor stack depth */ | ||||
int bn; /* brace number */ | int bn; /* brace number */ | ||||
▲ Show 20 Lines • Show All 270 Lines • Show Last 20 Lines |