libnl 3.7.0
|
Attribute Modifications | |
uint32_t | rtnl_htb_get_rate2quantum (struct rtnl_qdisc *qdisc) |
Return rate/quantum ratio of HTB qdisc. More... | |
int | rtnl_htb_set_rate2quantum (struct rtnl_qdisc *qdisc, uint32_t rate2quantum) |
uint32_t | rtnl_htb_get_defcls (struct rtnl_qdisc *qdisc) |
Return default class of HTB qdisc. More... | |
int | rtnl_htb_set_defcls (struct rtnl_qdisc *qdisc, uint32_t defcls) |
Set default class of the htb qdisc to the specified value. More... | |
uint32_t | rtnl_htb_get_prio (struct rtnl_class *class) |
int | rtnl_htb_set_prio (struct rtnl_class *class, uint32_t prio) |
uint32_t | rtnl_htb_get_rate (struct rtnl_class *class) |
Return rate of HTB class. More... | |
int | rtnl_htb_get_rate64 (struct rtnl_class *class, uint64_t *out_rate64) |
Return rate of HTB class. More... | |
int | rtnl_htb_set_rate (struct rtnl_class *class, uint32_t rate) |
Set rate of HTB class. More... | |
int | rtnl_htb_set_rate64 (struct rtnl_class *class, uint64_t rate) |
Set rate of HTB class. More... | |
uint32_t | rtnl_htb_get_ceil (struct rtnl_class *class) |
Return ceil rate of HTB class. More... | |
int | rtnl_htb_get_ceil64 (struct rtnl_class *class, uint64_t *out_ceil64) |
Return ceil rate of HTB class. More... | |
int | rtnl_htb_set_ceil (struct rtnl_class *class, uint32_t ceil) |
Set ceil rate of HTB class. More... | |
int | rtnl_htb_set_ceil64 (struct rtnl_class *class, uint64_t ceil64) |
Set ceil rate of HTB class. More... | |
uint32_t | rtnl_htb_get_rbuffer (struct rtnl_class *class) |
Return burst buffer size of HTB class. More... | |
int | rtnl_htb_set_rbuffer (struct rtnl_class *class, uint32_t rbuffer) |
Set size of the rate bucket of HTB class. More... | |
uint32_t | rtnl_htb_get_cbuffer (struct rtnl_class *class) |
Return ceil burst buffer size of HTB class. More... | |
int | rtnl_htb_set_cbuffer (struct rtnl_class *class, uint32_t cbuffer) |
Set size of the ceil bucket of HTB class. More... | |
uint32_t | rtnl_htb_get_quantum (struct rtnl_class *class) |
Return quantum of HTB class. More... | |
int | rtnl_htb_set_quantum (struct rtnl_class *class, uint32_t quantum) |
Set quantum of HTB class (overwrites value calculated based on r2q) More... | |
int | rtnl_htb_get_level (struct rtnl_class *class) |
Return level of HTB class. More... | |
int | rtnl_htb_set_level (struct rtnl_class *class, int level) |
Set level of HTB class. More... | |
uint32_t rtnl_htb_get_rate2quantum | ( | struct rtnl_qdisc * | qdisc | ) |
int rtnl_htb_set_rate2quantum | ( | struct rtnl_qdisc * | qdisc, |
uint32_t | rate2quantum | ||
) |
uint32_t rtnl_htb_get_defcls | ( | struct rtnl_qdisc * | qdisc | ) |
int rtnl_htb_set_defcls | ( | struct rtnl_qdisc * | qdisc, |
uint32_t | defcls | ||
) |
int rtnl_htb_set_prio | ( | struct rtnl_class * | class, |
uint32_t | prio | ||
) |
uint32_t rtnl_htb_get_rate | ( | struct rtnl_class * | class | ) |
Return rate of HTB class.
class | htb class object |
int rtnl_htb_get_rate64 | ( | struct rtnl_class * | class, |
uint64_t * | out_rate64 | ||
) |
int rtnl_htb_set_rate | ( | struct rtnl_class * | class, |
uint32_t | rate | ||
) |
Set rate of HTB class.
class | htb class object |
rate | new rate in bytes per second |
Definition at line 442 of file htb.c.
References rtnl_htb_set_rate64().
int rtnl_htb_set_rate64 | ( | struct rtnl_class * | class, |
uint64_t | rate | ||
) |
Set rate of HTB class.
class | htb class object |
rate | new rate in bytes per second |
Definition at line 454 of file htb.c.
Referenced by rtnl_htb_set_rate().
uint32_t rtnl_htb_get_ceil | ( | struct rtnl_class * | class | ) |
Return ceil rate of HTB class.
class | htb class object |
int rtnl_htb_get_ceil64 | ( | struct rtnl_class * | class, |
uint64_t * | out_ceil64 | ||
) |
int rtnl_htb_set_ceil | ( | struct rtnl_class * | class, |
uint32_t | ceil | ||
) |
Set ceil rate of HTB class.
class | htb class object |
ceil | new ceil rate number of bytes per second |
Definition at line 518 of file htb.c.
References rtnl_htb_set_ceil64().
int rtnl_htb_set_ceil64 | ( | struct rtnl_class * | class, |
uint64_t | ceil64 | ||
) |
Set ceil rate of HTB class.
class | htb class object |
ceil64 | new ceil rate number of bytes per second |
Definition at line 530 of file htb.c.
Referenced by rtnl_htb_set_ceil().
uint32_t rtnl_htb_get_rbuffer | ( | struct rtnl_class * | class | ) |
int rtnl_htb_set_rbuffer | ( | struct rtnl_class * | class, |
uint32_t | rbuffer | ||
) |
uint32_t rtnl_htb_get_cbuffer | ( | struct rtnl_class * | class | ) |
int rtnl_htb_set_cbuffer | ( | struct rtnl_class * | class, |
uint32_t | cbuffer | ||
) |
uint32_t rtnl_htb_get_quantum | ( | struct rtnl_class * | class | ) |
int rtnl_htb_set_quantum | ( | struct rtnl_class * | class, |
uint32_t | quantum | ||
) |
int rtnl_htb_get_level | ( | struct rtnl_class * | class | ) |
Return level of HTB class.
class | htb class object |
Returns the level of the HTB class. Leaf classes are assigned level 0, root classes have level (TC_HTB_MAXDEPTH - 1). Interior classes have a level of one less than their parent.
int rtnl_htb_set_level | ( | struct rtnl_class * | class, |
int | level | ||
) |
Set level of HTB class.
class | htb class object |
level | new level of HTB class |
Sets the level of a HTB class. Note that changing the level of a HTB class does not change the level of its in kernel counterpart. This function is provided only to create HTB objects which can be compared against or filtered upon.