00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef NETLINK_PRIO_H_
00013 #define NETLINK_PRIO_H_
00014
00015 #include <netlink/netlink.h>
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #define QDISC_PRIO_DEFAULT_BANDS 3
00027
00028
00029
00030
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