/build/buildd/libnl-1.0~pre6/include/netlink/route/sch/prio.h

00001 /*
00002  * netlink/route/sch/prio.c     PRIO 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-2006 Thomas Graf <tgraf@suug.ch>
00010  */
00011 
00012 #ifndef NETLINK_PRIO_H_
00013 #define NETLINK_PRIO_H_
00014 
00015 #include <netlink/netlink.h>
00016 
00017 /**
00018  * @name Default Values
00019  * @{
00020  */
00021 
00022 /**
00023  * Default number of bands.
00024  * @ingroup prio
00025  */
00026 #define QDISC_PRIO_DEFAULT_BANDS 3
00027 
00028 /**
00029  * Default priority mapping.
00030  * @ingroup prio
00031  */
00032 #define QDISC_PRIO_DEFAULT_PRIOMAP \
00033                 { 1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 }
00034 
00035 /** @} */
00036 
00037 extern int  rtnl_qdisc_prio_set_bands(struct rtnl_qdisc *, int);
00038 extern int  rtnl_qdisc_prio_get_bands(struct rtnl_qdisc *);
00039 extern int  rtnl_qdisc_prio_set_priomap(struct rtnl_qdisc *, uint8_t[], int);
00040 extern uint8_t *rtnl_qdisc_prio_get_priomap(struct rtnl_qdisc *);
00041 
00042 extern char *   rtnl_prio2str(int, char *, size_t);
00043 extern int      rtnl_str2prio(const char *);
00044 
00045 #endif

Generated on Fri Apr 27 14:14:07 2007 for libnl by  doxygen 1.5.1