netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Collaboration diagram for Random Early Detection (RED):

Attribute Access

int 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

int rtnl_red_get_limit ( struct rtnl_qdisc qdisc)

Get limit of RED qdisc.

  • qdisc RED qdisc.
    Returns
    Limit or a negative error code.

References NLE_NOATTR, rtnl_red::qr_limit, and rtnl_red::qr_mask.

int rtnl_red_set_limit ( struct rtnl_qdisc qdisc,
int  limit 
)

Set limit of RED qdisc.

  • qdisc RED qdisc to be modified.
  • limit New limit in number of packets.
    Returns
    0 on success or a negative error code.

References NLE_NOMEM, rtnl_red::qr_limit, and rtnl_red::qr_mask.