libnl: /data/src/libnl3/include/netlink/route/qdisc/tbf.h Source File

libnl 3.7.0

tbf.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
4 */
5
6 #ifndef NETLINK_TBF_H_
7 #define NETLINK_TBF_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/route/tc.h>
11 #include <netlink/route/qdisc.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 extern void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *, int);
18 extern int rtnl_qdisc_tbf_set_limit_by_latency(struct rtnl_qdisc *, int);
19 extern int rtnl_qdisc_tbf_get_limit(struct rtnl_qdisc *);
20
21 extern void rtnl_qdisc_tbf_set_rate(struct rtnl_qdisc *, int, int, int);
22 extern int rtnl_qdisc_tbf_get_rate(struct rtnl_qdisc *);
23 extern int rtnl_qdisc_tbf_get_rate_bucket(struct rtnl_qdisc *);
24 extern int rtnl_qdisc_tbf_get_rate_cell(struct rtnl_qdisc *);
25
26 extern int rtnl_qdisc_tbf_set_peakrate(struct rtnl_qdisc *, int, int, int);
27 extern int rtnl_qdisc_tbf_get_peakrate(struct rtnl_qdisc *);
28 extern int rtnl_qdisc_tbf_get_peakrate_bucket(struct rtnl_qdisc *);
29 extern int rtnl_qdisc_tbf_get_peakrate_cell(struct rtnl_qdisc *);
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif
rtnl_qdisc_tbf_set_limit_by_latency
int rtnl_qdisc_tbf_set_limit_by_latency(struct rtnl_qdisc *, int)
Set limit of TBF qdisc by latency.
Definition: tbf.c:212
rtnl_qdisc_tbf_get_rate
int rtnl_qdisc_tbf_get_rate(struct rtnl_qdisc *)
Get rate of TBF qdisc.
Definition: tbf.c:296
rtnl_qdisc_tbf_get_peakrate_bucket
int rtnl_qdisc_tbf_get_peakrate_bucket(struct rtnl_qdisc *)
Get peak rate bucket size of TBF qdisc.
Definition: tbf.c:399
rtnl_qdisc_tbf_get_rate_cell
int rtnl_qdisc_tbf_get_rate_cell(struct rtnl_qdisc *)
Get rate cell size of TBF qdisc.
Definition: tbf.c:332
rtnl_qdisc_tbf_get_rate_bucket
int rtnl_qdisc_tbf_get_rate_bucket(struct rtnl_qdisc *)
Get rate bucket size of TBF qdisc.
Definition: tbf.c:314
rtnl_qdisc_tbf_set_limit
void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *, int)
Set limit of TBF qdisc.
Definition: tbf.c:172
rtnl_qdisc_tbf_get_limit
int rtnl_qdisc_tbf_get_limit(struct rtnl_qdisc *)
Get limit of TBF qdisc.
Definition: tbf.c:243
rtnl_qdisc_tbf_set_peakrate
int rtnl_qdisc_tbf_set_peakrate(struct rtnl_qdisc *, int, int, int)
Set peak rate of TBF qdisc.
Definition: tbf.c:353
rtnl_qdisc_tbf_get_peakrate_cell
int rtnl_qdisc_tbf_get_peakrate_cell(struct rtnl_qdisc *)
Get peak rate cell size of TBF qdisc.
Definition: tbf.c:417
rtnl_qdisc_tbf_set_rate
void rtnl_qdisc_tbf_set_rate(struct rtnl_qdisc *, int, int, int)
Set rate of TBF qdisc.
Definition: tbf.c:270
rtnl_qdisc_tbf_get_peakrate
int rtnl_qdisc_tbf_get_peakrate(struct rtnl_qdisc *)
Get peak rate of TBF qdisc.
Definition: tbf.c:381