Random Early Detection (RED)
[Queueing Disciplines]

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:
qdisc RED qdisc to be modified.
limit New limit in number of packets.
Returns:
0 on success or a negative error code.

Definition at line 136 of file red.c.

References TC_CAST.

int rtnl_red_get_limit ( struct rtnl_qdisc *  qdisc  ) 

Get limit of RED qdisc.

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

Definition at line 152 of file red.c.

References TC_CAST.