From 8b2d59dadb920ed45dd347e2962ef4cf216d0c57 Mon Sep 17 00:00:00 2001 From: Alvaro Neira Date: Mon, 16 Mar 2015 16:06:09 +0100 Subject: parser: Add operation not supported error message If we try to import a ruleset in json or xml and the library was not compile with support for those, this shows a misleading error. To resolve this problem, this patch sets up EOPNOTSUPP by default when we create the nft_parse_err structure. Signed-off-by: Alvaro Neira Ayuso Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/libnftnl/common.h b/include/libnftnl/common.h index f8f1304..14db823 100644 --- a/include/libnftnl/common.h +++ b/include/libnftnl/common.h @@ -7,6 +7,7 @@ enum { NFT_PARSE_EBADINPUT = 0, NFT_PARSE_EMISSINGNODE, NFT_PARSE_EBADTYPE, + NFT_PARSE_EOPNOTSUPP, }; enum nft_output_type { -- cgit v1.2.3