LQLQDiscHTB

LQLQDiscHTB — LQLQDiscHTB models a HTB queueing discipline.

Synopsis




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);

Object Hierarchy


  GObject
   +----LQLElement
         +----LQLQDisc
               +----LQLQDiscHTB

Properties


  "default-class"        guint                : Read / Write
  "rate-to-quantum"      guint                : Read / Write

Description

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.

Details

struct LQLQDiscHTB

struct LQLQDiscHTB;

This should not be accessed directly.


lql_qdisc_htb_new ()

LQLQDiscHTB* lql_qdisc_htb_new              (void);

Build a new instance of LQLQDiscHTB.

Returns : A new LQLQDiscHTB instance.

lql_qdisc_htb_get_defaultClass ()

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.

lql_qdisc_htb_set_defaultClass ()

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.

lql_qdisc_htb_get_rateToQuantum ()

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.

lql_qdisc_htb_set_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.

lql_qdisc_htb_get_directPackets ()

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.

Properties

"default-class" (guint : Read / Write)

Set/Get the ID of the class to send traffic to by default.

"rate-to-quantum" (guint : Read / Write)

Set/Get the rate2quantum for this LQLQDiscHTB.