12#include <netlink/cli/utils.h>
13#include <netlink/cli/class.h>
15struct rtnl_class *nl_cli_class_alloc(
void)
17 struct rtnl_class *
class;
19 if (!(
class = rtnl_class_alloc()))
25struct nl_cache *nl_cli_class_alloc_cache(
struct nl_sock *sock,
int ifindex)
27 struct nl_cache *cache;
void nl_cache_mngt_provide(struct nl_cache *cache)
Provide a cache for global use.
int rtnl_class_alloc_cache(struct nl_sock *sk, int ifindex, struct nl_cache **result)
Allocate a cache and fill it with all configured traffic classes.
void nl_cli_fatal(int err, const char *fmt,...)
Print error message and quit application.