libnl 1.1.4
htb.h
1/*
2 * netlink/route/sch/htb.h HTB Qdisc
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
7 * of the License.
8 *
9 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
10 * Copyright (c) 2005 Petr Gotthard <petr.gotthard@siemens.com>
11 * Copyright (c) 2005 Siemens AG Oesterreich
12 */
13
14#ifndef NETLINK_HTB_H_
15#define NETLINK_HTB_H_
16
17#include <netlink/netlink.h>
18#include <netlink/route/tc.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24extern void rtnl_htb_set_rate2quantum(struct rtnl_qdisc *, uint32_t);
25extern void rtnl_htb_set_defcls(struct rtnl_qdisc *, uint32_t);
26
27extern void rtnl_htb_set_prio(struct rtnl_class *, uint32_t);
28extern void rtnl_htb_set_mtu(struct rtnl_class *, uint32_t);
29extern void rtnl_htb_set_rate(struct rtnl_class *, uint32_t);
30extern void rtnl_htb_set_ceil(struct rtnl_class *, uint32_t);
31extern void rtnl_htb_set_rbuffer(struct rtnl_class *, uint32_t);
32extern void rtnl_htb_set_cbuffer(struct rtnl_class *, uint32_t);
33extern void rtnl_htb_set_quantum(struct rtnl_class *class, uint32_t quantum);
34extern void rtnl_htb_set_overhead(struct rtnl_class *class, uint8_t overhead);
35extern void rtnl_htb_set_mpu(struct rtnl_class *class, uint8_t mpu);
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif
void rtnl_htb_set_quantum(struct rtnl_class *class, uint32_t quantum)
Set how much bytes to serve from leaf at once of HTB class {use r2q}.
Definition: htb.c:482
void rtnl_htb_set_rate(struct rtnl_class *, uint32_t)
Set rate of HTB class.
Definition: htb.c:420
void rtnl_htb_set_mpu(struct rtnl_class *class, uint8_t mpu)
Set the minimum packet size used in rate computations of HTB class.
Definition: htb.c:512
void rtnl_htb_set_cbuffer(struct rtnl_class *, uint32_t)
Set size of the ceil bucket of HTB class.
Definition: htb.c:467
void rtnl_htb_set_overhead(struct rtnl_class *class, uint8_t overhead)
Set per-packet size overhead used in rate computations of HTB class.
Definition: htb.c:497
void rtnl_htb_set_rbuffer(struct rtnl_class *, uint32_t)
Set size of the rate bucket of HTB class.
Definition: htb.c:452
void rtnl_htb_set_mtu(struct rtnl_class *, uint32_t)
Set MTU of the data link.
Definition: htb.c:405
void rtnl_htb_set_ceil(struct rtnl_class *, uint32_t)
Set ceil of HTB class.
Definition: htb.c:436
void rtnl_htb_set_defcls(struct rtnl_qdisc *, uint32_t)
Set default class of the htb qdisc to the specified value.
Definition: htb.c:377