Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/pf/pf_altq.h
Show All 39 Lines | struct cbq_opts { | ||||
u_int maxpktsize; | u_int maxpktsize; | ||||
u_int ns_per_byte; | u_int ns_per_byte; | ||||
u_int maxidle; | u_int maxidle; | ||||
int minidle; | int minidle; | ||||
u_int offtime; | u_int offtime; | ||||
int flags; | int flags; | ||||
}; | }; | ||||
struct codel_opts { | |||||
u_int target; | |||||
u_int interval; | |||||
int ecn; | |||||
}; | |||||
struct priq_opts { | struct priq_opts { | ||||
int flags; | int flags; | ||||
}; | }; | ||||
struct hfsc_opts { | struct hfsc_opts { | ||||
/* real-time service curve */ | /* real-time service curve */ | ||||
u_int rtsc_m1; /* slope of the 1st segment in bps */ | u_int rtsc_m1; /* slope of the 1st segment in bps */ | ||||
u_int rtsc_d; /* the x-projection of m1 in msec */ | u_int rtsc_d; /* the x-projection of m1 in msec */ | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | struct pf_altq { | ||||
uint8_t priority; /* priority */ | uint8_t priority; /* priority */ | ||||
uint8_t local_flags; /* dynamic interface */ | uint8_t local_flags; /* dynamic interface */ | ||||
#define PFALTQ_FLAG_IF_REMOVED 0x01 | #define PFALTQ_FLAG_IF_REMOVED 0x01 | ||||
uint16_t qlimit; /* queue size limit */ | uint16_t qlimit; /* queue size limit */ | ||||
uint16_t flags; /* misc flags */ | uint16_t flags; /* misc flags */ | ||||
union { | union { | ||||
struct cbq_opts cbq_opts; | struct cbq_opts cbq_opts; | ||||
struct codel_opts codel_opts; | |||||
struct priq_opts priq_opts; | struct priq_opts priq_opts; | ||||
struct hfsc_opts hfsc_opts; | struct hfsc_opts hfsc_opts; | ||||
struct fairq_opts fairq_opts; | struct fairq_opts fairq_opts; | ||||
} pq_u; | } pq_u; | ||||
uint32_t qid; /* return value */ | uint32_t qid; /* return value */ | ||||
}; | }; | ||||
#endif /* _NET_PF_ALTQ_H_ */ | #endif /* _NET_PF_ALTQ_H_ */ |