| 1 |
/* SPDX-License-Identifier: LGPL-2.1-only */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2003-2011 Thomas Graf <[email protected]> |
| 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 |