libnl
3.11.0
hfsc.h
1
/* SPDX-License-Identifier: LGPL-2.1-only */
2
/*
3
* Copyright (c) 2014 Cong Wang <xiyou.wangcong@gmail.com>
4
*/
5
6
#ifndef NETLINK_HFSC_H_
7
#define NETLINK_HFSC_H_
8
9
#include <netlink/netlink.h>
10
#include <netlink/route/tc.h>
11
#include <netlink/route/qdisc.h>
12
#include <netlink/route/class.h>
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
struct
tc_service_curve;
19
20
extern
uint32_t
rtnl_qdisc_hfsc_get_defcls
(
const
struct
rtnl_qdisc
*);
21
extern
int
rtnl_qdisc_hfsc_set_defcls
(
struct
rtnl_qdisc
*, uint32_t);
22
23
extern
int
rtnl_class_hfsc_get_rsc(
const
struct
rtnl_class
*cls,
struct
tc_service_curve *tsc);
24
extern
int
rtnl_class_hfsc_set_rsc(
struct
rtnl_class
*cls,
const
struct
tc_service_curve *tsc);
25
extern
int
rtnl_class_hfsc_get_fsc(
const
struct
rtnl_class
*cls,
struct
tc_service_curve *tsc);
26
extern
int
rtnl_class_hfsc_set_fsc(
struct
rtnl_class
*cls,
const
struct
tc_service_curve *tsc);
27
extern
int
rtnl_class_hfsc_get_usc(
const
struct
rtnl_class
*cls,
struct
tc_service_curve *tsc);
28
extern
int
rtnl_class_hfsc_set_usc(
struct
rtnl_class
*cls,
const
struct
tc_service_curve *tsc);
29
#ifdef __cplusplus
30
}
31
#endif
32
33
#endif
rtnl_qdisc_hfsc_get_defcls
uint32_t rtnl_qdisc_hfsc_get_defcls(const struct rtnl_qdisc *)
Return default class of HFSC qdisc.
Definition
hfsc.c:209
rtnl_qdisc_hfsc_set_defcls
int rtnl_qdisc_hfsc_set_defcls(struct rtnl_qdisc *, uint32_t)
Set default class of the hfsc qdisc to the specified value.
Definition
hfsc.c:225
rtnl_class
Definition
class.c:23
rtnl_qdisc
Definition
nl-route.h:119
include
netlink
route
qdisc
hfsc.h
Generated on Wed Oct 30 2024 08:16:39 for libnl by
1.10.0