2 * netlink/route/sch/prio.c PRIO Qdisc
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
9 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
12 #ifndef NETLINK_PRIO_H_
13 #define NETLINK_PRIO_H_
15 #include <netlink/netlink.h>
18 * @name Default Values
23 * Default number of bands.
26 #define QDISC_PRIO_DEFAULT_BANDS 3
29 * Default priority mapping.
32 #define QDISC_PRIO_DEFAULT_PRIOMAP \
33 { 1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 }
37 extern int rtnl_qdisc_prio_set_bands(struct rtnl_qdisc *, int);
38 extern int rtnl_qdisc_prio_get_bands(struct rtnl_qdisc *);
39 extern int rtnl_qdisc_prio_set_priomap(struct rtnl_qdisc *, uint8_t[], int);
40 extern uint8_t *rtnl_qdisc_prio_get_priomap(struct rtnl_qdisc *);
42 extern char * rtnl_prio2str(int, char *, size_t);
43 extern int rtnl_str2prio(const char *);