libnl 3.7.0

Attribute Access

void 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

◆ rtnl_red_set_limit()

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 130 of file red.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

◆ rtnl_red_get_limit()

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 146 of file red.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function: