libnl  1.1
Random Early Detection (RED)

Attribute Access

int rtnl_red_set_limit (struct rtnl_qdisc *qdisc, int limit)
 Set limit of RED qdisc. More...
 
int rtnl_red_get_limit (struct rtnl_qdisc *qdisc)
 Get limit of RED qdisc. More...
 

Detailed Description

Function Documentation

int rtnl_red_set_limit ( struct rtnl_qdisc *  qdisc,
int  limit 
)
Parameters
qdiscRED qdisc to be modified.
limitNew limit in number of packets.
Returns
0 on success or a negative error code.

Definition at line 168 of file red.c.

int rtnl_red_get_limit ( struct rtnl_qdisc *  qdisc)
Parameters
qdiscRED qdisc.
Returns
Limit or a negative error code.

Definition at line 187 of file red.c.