LQLQDiscPriomap

LQLQDiscPriomap — LQLQDiscPriomap models a priomap queueing discipline.

Synopsis




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

Object Hierarchy


  GObject
   +----LQLElement
         +----LQLQDisc
               +----LQLQDiscPriomap

Properties


  "bands"                gint                 : Read / Write

Description

LQLQDiscPriomap models a priomap queueing discipline.

Details

struct LQLQDiscPriomap

struct LQLQDiscPriomap;

This should not be accessed directly.


lql_qdisc_priomap_new ()

LQLQDiscPriomap* lql_qdisc_priomap_new      (void);

Build a new instance of LQLQDiscPriomap.

Returns : A new LQLQDiscPriomap instance.

lql_qdisc_priomap_get_bands ()

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.

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

lql_qdisc_priomap_set_prio ()

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.

lql_qdisc_priomap_get_prio ()

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.

Properties

"bands" (gint : Read / Write)

Set/Get the number of traffic bands.