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