2007-09-15 01:28:01 +02:00
|
|
|
/*
|
|
|
|
* netlink/route/sch/dsmark.h DSMARK
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation version 2.1
|
|
|
|
* of the License.
|
|
|
|
*
|
2011-11-25 16:08:25 +01:00
|
|
|
* Copyright (c) 2003-2011 Thomas Graf <tgraf@suug.ch>
|
2007-09-15 01:28:01 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef NETLINK_DSMARK_H_
|
|
|
|
#define NETLINK_DSMARK_H_
|
|
|
|
|
|
|
|
#include <netlink/netlink.h>
|
2012-05-16 13:42:05 +02:00
|
|
|
#include <netlink/route/qdisc.h>
|
|
|
|
#include <netlink/route/class.h>
|
2007-09-15 01:28:01 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2011-11-25 16:08:25 +01:00
|
|
|
extern int rtnl_class_dsmark_set_bitmask(struct rtnl_class *, uint8_t);
|
|
|
|
extern int rtnl_class_dsmark_get_bitmask(struct rtnl_class *);
|
2007-09-15 01:28:01 +02:00
|
|
|
|
|
|
|
extern int rtnl_class_dsmark_set_value(struct rtnl_class *, uint8_t);
|
|
|
|
extern int rtnl_class_dsmark_get_value(struct rtnl_class *);
|
|
|
|
|
|
|
|
extern int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *, uint16_t);
|
|
|
|
extern int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *);
|
|
|
|
|
|
|
|
extern int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc *,
|
|
|
|
uint16_t);
|
|
|
|
extern int rtnl_qdisc_dsmark_get_default_index(struct rtnl_qdisc *);
|
|
|
|
|
|
|
|
extern int rtnl_qdisc_dsmark_set_set_tc_index(struct rtnl_qdisc *, int);
|
|
|
|
extern int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc *);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|