summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-08-18 17:43:28 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-08-19 21:37:40 +0200
commit838915373efe11e388e57703e9733e42f42bd5da (patch)
treebfceea443c8bd3b8c4352c2ed3379db0a485c51a /include
parent17ab8231cf9ff2a64c186a8104138688291c0760 (diff)
src: don't return error in netlink_linearize_rule()
This function converts the rule from the list of statements to the netlink message format. The only two possible errors that can make this function to fail are memory exhaustion and malformed statements which inmediately stop the execution of nft. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/netlink.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/netlink.h b/include/netlink.h
index af5dcd94..d7d5c2d1 100644
--- a/include/netlink.h
+++ b/include/netlink.h
@@ -65,9 +65,9 @@ extern struct expr *netlink_alloc_data(const struct location *loc,
const struct nft_data_delinearize *nld,
enum nft_registers dreg);
-extern int netlink_linearize_rule(struct netlink_ctx *ctx,
- struct nft_rule *nlr,
- const struct rule *rule);
+extern void netlink_linearize_rule(struct netlink_ctx *ctx,
+ struct nft_rule *nlr,
+ const struct rule *rule);
extern struct rule *netlink_delinearize_rule(struct netlink_ctx *ctx,
const struct nft_rule *r);