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
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
int rtnl_qdisc_tbf_set_limit_by_latency(struct rtnl_qdisc *, int)
Set limit of TBF qdisc by latency.
Definition: tbf.c:212
int rtnl_qdisc_tbf_get_rate(struct rtnl_qdisc *)
Get rate of TBF qdisc.
Definition: tbf.c:296
int rtnl_qdisc_tbf_get_peakrate_bucket(struct rtnl_qdisc *)
Get peak rate bucket size of TBF qdisc.
Definition: tbf.c:399
int rtnl_qdisc_tbf_get_rate_cell(struct rtnl_qdisc *)
Get rate cell size of TBF qdisc.
Definition: tbf.c:332
int rtnl_qdisc_tbf_get_rate_bucket(struct rtnl_qdisc *)
Get rate bucket size of TBF qdisc.
Definition: tbf.c:314
void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *, int)
Set limit of TBF qdisc.
Definition: tbf.c:172
int rtnl_qdisc_tbf_get_limit(struct rtnl_qdisc *)
Get limit of TBF qdisc.
Definition: tbf.c:243
int rtnl_qdisc_tbf_set_peakrate(struct rtnl_qdisc *, int, int, int)
Set peak rate of TBF qdisc.
Definition: tbf.c:353
int rtnl_qdisc_tbf_get_peakrate_cell(struct rtnl_qdisc *)
Get peak rate cell size of TBF qdisc.
Definition: tbf.c:417
void rtnl_qdisc_tbf_set_rate(struct rtnl_qdisc *, int, int, int)
Set rate of TBF qdisc.
Definition: tbf.c:270
int rtnl_qdisc_tbf_get_peakrate(struct rtnl_qdisc *)
Get peak rate of TBF qdisc.
Definition: tbf.c:381