12 #ifndef NETLINK_PRIO_H_
13 #define NETLINK_PRIO_H_
15 #include <netlink/netlink.h>
16 #include <netlink/route/qdisc.h>
31 #define QDISC_PRIO_DEFAULT_BANDS 3
37 #define QDISC_PRIO_DEFAULT_PRIOMAP \
38 { 1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 }
int rtnl_qdisc_prio_get_bands(struct rtnl_qdisc *)
Get number of bands of PRIO qdisc.
int rtnl_qdisc_prio_set_priomap(struct rtnl_qdisc *, uint8_t[], int)
Set priomap of the PRIO qdisc.
void rtnl_qdisc_prio_set_bands(struct rtnl_qdisc *, int)
Set number of bands of PRIO qdisc.
char * rtnl_prio2str(int, char *, size_t)
Convert priority to character string.
uint8_t * rtnl_qdisc_prio_get_priomap(struct rtnl_qdisc *)
Get priomap of a PRIO qdisc.
int rtnl_str2prio(const char *)
Convert character string to priority.