Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/pfctl/pfctl_parser.h
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | union { | ||||
struct cbq_opts cbq_opts; | struct cbq_opts cbq_opts; | ||||
struct codel_opts codel_opts; | struct codel_opts codel_opts; | ||||
struct priq_opts priq_opts; | struct priq_opts priq_opts; | ||||
struct node_hfsc_opts hfsc_opts; | struct node_hfsc_opts hfsc_opts; | ||||
struct node_fairq_opts fairq_opts; | struct node_fairq_opts fairq_opts; | ||||
} data; | } data; | ||||
}; | }; | ||||
#define QPRI_BITSET_SIZE 256 | |||||
BITSET_DEFINE(qpri_bitset, QPRI_BITSET_SIZE); | |||||
LIST_HEAD(gen_sc, segment); | |||||
struct pfctl_altq { | |||||
struct pf_altq pa; | |||||
struct { | |||||
STAILQ_ENTRY(pfctl_altq) link; | |||||
u_int64_t bwsum; | |||||
struct qpri_bitset qpris; | |||||
int children; | |||||
int root_classes; | |||||
int default_classes; | |||||
struct gen_sc lssc; | |||||
struct gen_sc rtsc; | |||||
} meta; | |||||
}; | |||||
#ifdef __FreeBSD__ | #ifdef __FreeBSD__ | ||||
/* | /* | ||||
* XXX | * XXX | ||||
* Absolutely this is not correct location to define this. | * Absolutely this is not correct location to define this. | ||||
* Should we use an another sperate header file? | * Should we use an another sperate header file? | ||||
*/ | */ | ||||
#define SIMPLEQ_HEAD STAILQ_HEAD | #define SIMPLEQ_HEAD STAILQ_HEAD | ||||
#define SIMPLEQ_HEAD_INITIALIZER STAILQ_HEAD_INITIALIZER | #define SIMPLEQ_HEAD_INITIALIZER STAILQ_HEAD_INITIALIZER | ||||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | |||||
#define PFCTL_FLAG_TABLE 0x20 | #define PFCTL_FLAG_TABLE 0x20 | ||||
extern const struct pf_timeout pf_timeouts[]; | extern const struct pf_timeout pf_timeouts[]; | ||||
void set_ipmask(struct node_host *, u_int8_t); | void set_ipmask(struct node_host *, u_int8_t); | ||||
int check_netmask(struct node_host *, sa_family_t); | int check_netmask(struct node_host *, sa_family_t); | ||||
int unmask(struct pf_addr *, sa_family_t); | int unmask(struct pf_addr *, sa_family_t); | ||||
void ifa_load(void); | void ifa_load(void); | ||||
int get_socket_domain(void); | int get_query_socket(void); | ||||
struct node_host *ifa_exists(const char *); | struct node_host *ifa_exists(char *); | ||||
struct node_host *ifa_grouplookup(const char *ifa_name, int flags); | struct node_host *ifa_grouplookup(char *ifa_name, int flags); | ||||
struct node_host *ifa_lookup(const char *, int); | struct node_host *ifa_lookup(char *, int); | ||||
struct node_host *host(const char *); | struct node_host *host(const char *); | ||||
int append_addr(struct pfr_buffer *, char *, int); | int append_addr(struct pfr_buffer *, char *, int); | ||||
int append_addr_host(struct pfr_buffer *, | int append_addr_host(struct pfr_buffer *, | ||||
struct node_host *, int, int); | struct node_host *, int, int); | ||||
#endif /* _PFCTL_PARSER_H_ */ | #endif /* _PFCTL_PARSER_H_ */ |