htb.h

00001 /*
00002  * netlink/route/sch/htb.h      HTB Qdisc
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-2010 Thomas Graf <tgraf@suug.ch>
00010  * Copyright (c) 2005 Petr Gotthard <petr.gotthard@siemens.com>
00011  * Copyright (c) 2005 Siemens AG Oesterreich
00012  */
00013 
00014 #ifndef NETLINK_HTB_H_
00015 #define NETLINK_HTB_H_
00016 
00017 #include <netlink/netlink.h>
00018 #include <netlink/route/tc.h>
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 extern void rtnl_htb_set_rate2quantum(struct rtnl_qdisc *, uint32_t);
00025 extern void rtnl_htb_set_defcls(struct rtnl_qdisc *, uint32_t);
00026 
00027 extern void rtnl_htb_set_prio(struct rtnl_class *, uint32_t);
00028 extern void rtnl_htb_set_rate(struct rtnl_class *, uint32_t);
00029 extern uint32_t rtnl_htb_get_rate(struct rtnl_class *);
00030 extern void rtnl_htb_set_ceil(struct rtnl_class *, uint32_t);
00031 extern void rtnl_htb_set_rbuffer(struct rtnl_class *, uint32_t);
00032 extern void rtnl_htb_set_cbuffer(struct rtnl_class *, uint32_t);
00033 extern void rtnl_htb_set_quantum(struct rtnl_class *, uint32_t quantum);
00034 
00035 #ifdef __cplusplus
00036 }
00037 #endif
00038 
00039 #endif