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

libnl 3.12.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
14extern "C" {
15#endif
16
17extern void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *, int);
18extern int rtnl_qdisc_tbf_set_limit_by_latency(struct rtnl_qdisc *, int);
19extern int rtnl_qdisc_tbf_get_limit(struct rtnl_qdisc *);
20
21extern void rtnl_qdisc_tbf_set_rate(struct rtnl_qdisc *, int, int, int);
22extern int rtnl_qdisc_tbf_get_rate(struct rtnl_qdisc *);
23extern int rtnl_qdisc_tbf_get_rate_bucket(struct rtnl_qdisc *);
24extern int rtnl_qdisc_tbf_get_rate_cell(struct rtnl_qdisc *);
25
26extern int rtnl_qdisc_tbf_set_peakrate(struct rtnl_qdisc *, int, int, int);
27extern int rtnl_qdisc_tbf_get_peakrate(struct rtnl_qdisc *);
28extern int rtnl_qdisc_tbf_get_peakrate_bucket(struct rtnl_qdisc *);
29extern 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:224
rtnl_qdisc_tbf_get_rate
int rtnl_qdisc_tbf_get_rate(struct rtnl_qdisc *)
Get rate of TBF qdisc.
Definition tbf.c:308
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:411
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:344
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:326
rtnl_qdisc_tbf_set_limit
void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *, int)
Set limit of TBF qdisc.
Definition tbf.c:184
rtnl_qdisc_tbf_get_limit
int rtnl_qdisc_tbf_get_limit(struct rtnl_qdisc *)
Get limit of TBF qdisc.
Definition tbf.c:255
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:365
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:429
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:282
rtnl_qdisc_tbf_get_peakrate
int rtnl_qdisc_tbf_get_peakrate(struct rtnl_qdisc *)
Get peak rate of TBF qdisc.
Definition tbf.c:393
rtnl_qdisc
Definition nl-route.h:119