libnl  3.2.3
Random Early Detection (RED)

Attribute Access

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

Function Documentation

void rtnl_red_set_limit ( struct rtnl_qdisc *  qdisc,
int  limit 
)

Set limit of RED qdisc.

Parameters:
qdiscRED qdisc to be modified.
limitNew limit in number of packets.
Returns:
0 on success or a negative error code.

Definition at line 136 of file red.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_red_get_limit ( struct rtnl_qdisc *  qdisc)

Get limit of RED qdisc.

Parameters:
qdiscRED qdisc.
Returns:
Limit or a negative error code.

Definition at line 152 of file red.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function: