19 #include <netlink/cli/utils.h>
20 #include <netlink/cli/rule.h>
22 struct rtnl_rule *nl_cli_rule_alloc(
void)
24 struct rtnl_rule *rule;
26 rule = rtnl_rule_alloc();
33 struct nl_cache *nl_cli_rule_alloc_cache(
struct nl_sock *sk)
35 struct nl_cache *cache;
39 nl_cli_fatal(err,
"Unable to allocate routing rule cache: %s\n",
47 void nl_cli_rule_parse_family(
struct rtnl_rule *rule,
char *arg)
51 if ((family = nl_str2af(arg)) != AF_UNSPEC)
52 rtnl_rule_set_family(rule, family);