libnl 3.5.0

dsmark.h
1 /*
2 * netlink/route/sch/dsmark.h DSMARK
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
7 * of the License.
8 *
9 * Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
10 */
11
12 #ifndef NETLINK_DSMARK_H_
13 #define NETLINK_DSMARK_H_
14
15 #include <netlink/netlink.h>
16 #include <netlink/route/qdisc.h>
17 #include <netlink/route/class.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 extern int rtnl_class_dsmark_set_bitmask(struct rtnl_class *, uint8_t);
24 extern int rtnl_class_dsmark_get_bitmask(struct rtnl_class *);
25
26 extern int rtnl_class_dsmark_set_value(struct rtnl_class *, uint8_t);
27 extern int rtnl_class_dsmark_get_value(struct rtnl_class *);
28
29 extern int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *, uint16_t);
30 extern int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *);
31
32 extern int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc *,
33 uint16_t);
34 extern int rtnl_qdisc_dsmark_get_default_index(struct rtnl_qdisc *);
35
36 extern int rtnl_qdisc_dsmark_set_set_tc_index(struct rtnl_qdisc *, int);
37 extern int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc *);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif
rtnl_qdisc_dsmark_get_indices
int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *)
Get indices of DSMARK qdisc.
Definition: dsmark.c:289
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:308
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:346
rtnl_class_dsmark_get_value
int rtnl_class_dsmark_get_value(struct rtnl_class *)
Get value of DSMARK class.
Definition: dsmark.c:246
rtnl_class_dsmark_set_bitmask
int rtnl_class_dsmark_set_bitmask(struct rtnl_class *, uint8_t)
Set bitmask of DSMARK class.
Definition: dsmark.c:191
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:365
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:327
rtnl_qdisc_dsmark_set_indices
int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *, uint16_t)
Set indices of DSMARK qdisc.
Definition: dsmark.c:271
rtnl_class_dsmark_get_bitmask
int rtnl_class_dsmark_get_bitmask(struct rtnl_class *)
Get bitmask of DSMARK class.
Definition: dsmark.c:209
rtnl_class_dsmark_set_value
int rtnl_class_dsmark_set_value(struct rtnl_class *, uint8_t)
Set value of DSMARK class.
Definition: dsmark.c:228