From 086ec6f30c96e9a920baf22ba700ea1ee0363df7 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 19 Feb 2020 14:35:21 +0100 Subject: mnl: extended error support for create command # nft create table x Error: Could not process rule: File exists create table x ^ # nft create chain x y Error: Could not process rule: File exists create chain x y ^ # nft create set x y { typeof ip saddr\; } Error: Could not process rule: File exists create set x y { typeof ip saddr; } ^ # nft create counter x y Error: Could not process rule: File exists create counter x y ^ Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 9307dad5..9e58ee66 100644 --- a/src/rule.c +++ b/src/rule.c @@ -1579,7 +1579,7 @@ static int do_add_setelems(struct netlink_ctx *ctx, struct cmd *cmd, return __do_add_setelems(ctx, set, init, flags); } -static int do_add_set(struct netlink_ctx *ctx, const struct cmd *cmd, +static int do_add_set(struct netlink_ctx *ctx, struct cmd *cmd, uint32_t flags) { struct set *set = cmd->set; -- cgit v1.2.3