libnl 3.5.0

Random Early Detection (RED)
Routing Library (libnl-route) » Traffic Control » Queueing Disciplines

## 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

  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 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

  qdisc | RED 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: