LQLClassHTB

LQLClassHTB — LQLClassHTB models a HTB class.

Synopsis




struct      LQLClassHTB;
LQLClassHTB* lql_class_htb_new              (void);
unsigned int lql_class_htb_get_rate         (LQLClassHTB *self);
gboolean    lql_class_htb_set_rate          (LQLClassHTB *self,
                                             unsigned int rate);
unsigned int lql_class_htb_get_ceiling      (LQLClassHTB *self);
gboolean    lql_class_htb_set_ceiling       (LQLClassHTB *self,
                                             unsigned int ceiling);
unsigned int lql_class_htb_get_mtu          (LQLClassHTB *self);
gboolean    lql_class_htb_set_mtu           (LQLClassHTB *self,
                                             unsigned int mtu);
unsigned int lql_class_htb_get_mpu          (LQLClassHTB *self);
gboolean    lql_class_htb_set_mpu           (LQLClassHTB *self,
                                             unsigned int mpu);

Object Hierarchy


  GObject
   +----LQLElement
         +----LQLClass
               +----LQLClassHTB

Properties


  "ceiling"              guint                : Read / Write
  "mpu"                  guint                : Read / Write
  "mtu"                  guint                : Read / Write
  "rate"                 guint                : Read / Write

Description

LQLClassHTB models a HTB class.

Details

struct LQLClassHTB

struct LQLClassHTB;

This should not be accessed directly.


lql_class_htb_new ()

LQLClassHTB* lql_class_htb_new              (void);

Build a new instance of LQLClassHTB.

Returns : A new LQLClassHTB instance.

lql_class_htb_get_rate ()

unsigned int lql_class_htb_get_rate         (LQLClassHTB *self);

Get the rate of this class in bytes per second (bps).

self : The LQLClassHTB instance.
Returns : The rate in bps.

lql_class_htb_set_rate ()

gboolean    lql_class_htb_set_rate          (LQLClassHTB *self,
                                             unsigned int rate);

Set the rate of this class in bytes per second (bps).

self : The LQLClassHTB instance.
rate : The rate in bytes per second to set.
Returns : TRUE on success, FALSE on failure.

lql_class_htb_get_ceiling ()

unsigned int lql_class_htb_get_ceiling      (LQLClassHTB *self);

Get the ceiling rate for this class in bytes per second (bps).

self : The LQLClassHTB instance.
Returns : The ceiling rate for this class in bps.

lql_class_htb_set_ceiling ()

gboolean    lql_class_htb_set_ceiling       (LQLClassHTB *self,
                                             unsigned int ceiling);

Set the ceiling rate for this class in bytes per second (bps).

self : The LQLClassHTB instance.
ceiling : The ceiling rate for this class.
Returns : The ceiling rate for this class in bps.

lql_class_htb_get_mtu ()

unsigned int lql_class_htb_get_mtu          (LQLClassHTB *self);

Get the MTU value in bytes that is being used by this LQLClassHTB.

self : The LQLClassHTB instance.
Returns : The MTU value in bytes.

lql_class_htb_set_mtu ()

gboolean    lql_class_htb_set_mtu           (LQLClassHTB *self,
                                             unsigned int mtu);

Set the MTU value in bytes that is being used by this LQLClassHTB.

self : The LQLClassHTB instance.
mtu : The MTU in bytes.
Returns : The MTU value.

lql_class_htb_get_mpu ()

unsigned int lql_class_htb_get_mpu          (LQLClassHTB *self);

Get the MPU value in bytes being used by this LQLClassHTB.

self : The LQLClassHTB instance.
Returns : The MPU value in bytes.

lql_class_htb_set_mpu ()

gboolean    lql_class_htb_set_mpu           (LQLClassHTB *self,
                                             unsigned int mpu);

Set the MPU value in bytes that is being used by this LQLClassHTB.

self : The LQLClassHTB instance.
mpu : The MPU value in bytes.
Returns : TRUE on success, FALSE on error.

Properties

"ceiling" (guint : Read / Write)

Set/Get the ceiling rate in bytes/sec for this class.

"mpu" (guint : Read / Write)

Set/Get the MPU value for the class.

"mtu" (guint : Read / Write)

Set/Get the MTU value for the class.

"rate" (guint : Read / Write)

Set/Get the rate in bytes/sec for this class.

See Also

LQLQDiscHTB