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