libnl: Random Early Detection (RED)

libnl 3.10.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.
int | rtnl_red_get_limit (struct rtnl_qdisc *qdisc)
| Get limit of RED qdisc.

## 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 142 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 158 of file red.c.

References rtnl_tc_data(), and TC_CAST.

Here is the call graph for this function: