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

libnl 3.7.0

dsmark.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_DSMARK_H_
7 #define NETLINK_DSMARK_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/route/qdisc.h>
11 #include <netlink/route/class.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 extern int rtnl_class_dsmark_set_bitmask(struct rtnl_class *, uint8_t);
18 extern int rtnl_class_dsmark_get_bitmask(struct rtnl_class *);
19
20 extern int rtnl_class_dsmark_set_value(struct rtnl_class *, uint8_t);
21 extern int rtnl_class_dsmark_get_value(struct rtnl_class *);
22
23 extern int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *, uint16_t);
24 extern int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *);
25
26 extern int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc *,
27 uint16_t);
28 extern int rtnl_qdisc_dsmark_get_default_index(struct rtnl_qdisc *);
29
30 extern int rtnl_qdisc_dsmark_set_set_tc_index(struct rtnl_qdisc *, int);
31 extern int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc *);
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif
rtnl_qdisc_dsmark_set_indices
int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *, uint16_t)
Set indices of DSMARK qdisc.
Definition: dsmark.c:265
rtnl_class_dsmark_set_value
int rtnl_class_dsmark_set_value(struct rtnl_class *, uint8_t)
Set value of DSMARK class.
Definition: dsmark.c:222
rtnl_class_dsmark_set_bitmask
int rtnl_class_dsmark_set_bitmask(struct rtnl_class *, uint8_t)
Set bitmask of DSMARK class.
Definition: dsmark.c:185
rtnl_qdisc_dsmark_get_default_index
int rtnl_qdisc_dsmark_get_default_index(struct rtnl_qdisc *)
Get default index of DSMARK qdisc.
Definition: dsmark.c:321
rtnl_qdisc_dsmark_set_set_tc_index
int rtnl_qdisc_dsmark_set_set_tc_index(struct rtnl_qdisc *, int)
Set set-tc-index flag of DSMARK qdisc.
Definition: dsmark.c:340
rtnl_class_dsmark_get_value
int rtnl_class_dsmark_get_value(struct rtnl_class *)
Get value of DSMARK class.
Definition: dsmark.c:240
rtnl_qdisc_dsmark_get_set_tc_index
int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc *)
Get set-tc-index flag of DSMARK qdisc.
Definition: dsmark.c:359
rtnl_qdisc_dsmark_get_indices
int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *)
Get indices of DSMARK qdisc.
Definition: dsmark.c:283
rtnl_qdisc_dsmark_set_default_index
int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc *, uint16_t)
Set default index of DSMARK qdisc.
Definition: dsmark.c:302
rtnl_class_dsmark_get_bitmask
int rtnl_class_dsmark_get_bitmask(struct rtnl_class *)
Get bitmask of DSMARK class.
Definition: dsmark.c:203