LQL Reference Manual |
---|
LQLQDiscHTB — LQLQDiscHTB models a HTB queueing discipline.
struct LQLQDiscHTB; LQLQDiscHTB* lql_qdisc_htb_new (void); guint32 lql_qdisc_htb_get_defaultClass (LQLQDiscHTB *self); gboolean lql_qdisc_htb_set_defaultClass (LQLQDiscHTB *self, guint32 defaultClass); guint32 lql_qdisc_htb_get_rateToQuantum (LQLQDiscHTB *self); gboolean lql_qdisc_htb_set_rateToQuantum (LQLQDiscHTB *self, guint32 rateToQuantum); guint32 lql_qdisc_htb_get_directPackets (LQLQDiscHTB *self);
LQLQDiscHTB models a HTB queueing discipline.
Note: The HTB QDisc does not support modification of QDisc parameters (default class and rate to quantum) after creation. A call to lql_qdisc_modify() on a LQLQDiscHTB will simply return FALSE. This does not apply to class parameters which can be modified.
For more information see the LARTC HTB Documentation.
LQLQDiscHTB* lql_qdisc_htb_new (void);
Build a new instance of LQLQDiscHTB.
Returns : | A new LQLQDiscHTB instance. |
guint32 lql_qdisc_htb_get_defaultClass (LQLQDiscHTB *self);
Get the handle of the class this LQLQDiscHTB will direct packets to by default.
self : | The LQLQDiscHTB instance. |
Returns : | The default class handle. |
gboolean lql_qdisc_htb_set_defaultClass (LQLQDiscHTB *self, guint32 defaultClass);
Set the default class field of this object.
self : | The LQLQDisc object to work with. |
defaultClass : | The handle of the class to set as the default class. |
Returns : | TRUE on success, FALSE on error. |
guint32 lql_qdisc_htb_get_rateToQuantum (LQLQDiscHTB *self);
Get the value of the rateToQuantum field..
self : | The LQLQDiscHTB object to work with. |
Returns : | The rateToQuantum. |
gboolean lql_qdisc_htb_set_rateToQuantum (LQLQDiscHTB *self, guint32 rateToQuantum);
Set the rateToQuantum value for this LQLQDiscHTB.
self : | The LQLQDisc object to work with. |
rateToQuantum : | The rateToQuantum value. |
Returns : | TRUE on success, FALSE on error. |
guint32 lql_qdisc_htb_get_directPackets (LQLQDiscHTB *self);
Get the number of packets that have been directly enqueued into this QDisc instead of into a sub-class.
self : | The LQLQDiscHTB instance. |
Returns : | The number of directly queued packets. |
<< LQLQDisc | LQLQDiscPFIFO >> |