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