summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2016-04-27 12:29:48 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-05-13 19:30:24 +0200
commitcca234097a46c8e2e6fcf2e5d34a973dda103a10 (patch)
treebe4ba2a524c48609240b8540903887fb192a338b /include
parent14b68bb14eb7360219e65120e41b0ee496b6b3da (diff)
netlink_delinearize: support parsing statements not contained within a rule
Return the parsed statement instead of adding it to the rule in order to parse statements contained in the flow statement. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/netlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netlink.h b/include/netlink.h
index 01d0422e..9ec5409b 100644
--- a/include/netlink.h
+++ b/include/netlink.h
@@ -84,7 +84,7 @@ extern void netlink_linearize_rule(struct netlink_ctx *ctx,
struct nftnl_rule *nlr,
const struct rule *rule);
extern struct rule *netlink_delinearize_rule(struct netlink_ctx *ctx,
- const struct nftnl_rule *r);
+ struct nftnl_rule *r);
extern int netlink_add_rule(struct netlink_ctx *ctx, const struct handle *h,
const struct rule *rule, uint32_t flags);