LQL Reference Manual |
---|
LQLQDiscPriomap — LQLQDiscPriomap models a priomap queueing discipline.
struct LQLQDiscPriomap; LQLQDiscPriomap* lql_qdisc_priomap_new (void); int lql_qdisc_priomap_get_bands (LQLQDiscPriomap *self); gboolean lql_qdisc_priomap_set_bands (LQLQDiscPriomap *self, int bands); gboolean lql_qdisc_priomap_set_prio (LQLQDiscPriomap *self, int index, unsigned char value); unsigned char lql_qdisc_priomap_get_prio (LQLQDiscPriomap *self, int index);
LQLQDiscPriomap* lql_qdisc_priomap_new (void);
Build a new instance of LQLQDiscPriomap.
Returns : | A new LQLQDiscPriomap instance. |
int lql_qdisc_priomap_get_bands (LQLQDiscPriomap *self);
Get the number of traffic bands this LQLQDiscPriomap has.
self : | The LQLQDiscPriomap object to work with. |
Returns : | The number of traffic bands. |
gboolean lql_qdisc_priomap_set_bands (LQLQDiscPriomap *self, int bands);
Set the number of traffic bands for this LQLQDiscPriomap.
self : | The LQLQDisc object to work with. |
bands : | The number of bands. |
Returns : | TRUE on success, FALSE on error. |
gboolean lql_qdisc_priomap_set_prio (LQLQDiscPriomap *self, int index, unsigned char value);
This function is used to set the traffic band (class) that packets will be directed to for a certain value (index) of the TOS bits.
self : | The LQLQDiscPriomap instance. |
index : | The index in the priority table to set. |
value : | The value to set the priority table entry to. |
Returns : | TRUE on success, FALSE on failure. |
unsigned char lql_qdisc_priomap_get_prio (LQLQDiscPriomap *self, int index);
This function returns the traffic band that packets with TOS value index will be placed in.
self : | The LQLQDiscPriomap instance. |
index : | The index in the priomap table to return. |
Returns : | TRUE on success, FALSE on failure. |
<< LQLQDiscPFIFOFast | LQLQDiscSFQ >> |