00001 /* 00002 * netlink/route/sch/dsmark.h DSMARK 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation version 2.1 00007 * of the License. 00008 * 00009 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch> 00010 */ 00011 00012 #ifndef NETLINK_DSMARK_H_ 00013 #define NETLINK_DSMARK_H_ 00014 00015 #include <netlink/netlink.h> 00016 00017 extern int rtnl_class_dsmark_set_bmask(struct rtnl_class *, uint8_t); 00018 extern int rtnl_class_dsmark_get_bmask(struct rtnl_class *); 00019 00020 extern int rtnl_class_dsmark_set_value(struct rtnl_class *, uint8_t); 00021 extern int rtnl_class_dsmark_get_value(struct rtnl_class *); 00022 00023 extern int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *, uint16_t); 00024 extern int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *); 00025 00026 extern int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc *, 00027 uint16_t); 00028 extern int rtnl_qdisc_dsmark_get_default_index(struct rtnl_qdisc *); 00029 00030 extern int rtnl_qdisc_dsmark_set_set_tc_index(struct rtnl_qdisc *, int); 00031 extern int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc *); 00032 00033 #endif