LQL Reference Manual |
---|
LQLClassHTB — LQLClassHTB models a HTB class.
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);
"ceiling" guint : Read / Write "mpu" guint : Read / Write "mtu" guint : Read / Write "rate" guint : Read / Write
LQLClassHTB* lql_class_htb_new (void);
Build a new instance of LQLClassHTB.
Returns : | A new LQLClassHTB instance. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
<< LQLClass | LQLClassPriomap >> |