diff options
author | Alvaro Neira <alvaroneay@gmail.com> | 2015-03-12 17:33:09 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-03-13 12:18:20 +0100 |
commit | d27456460a2867d69a6bbed8aa0019f65ab42eac (patch) | |
tree | c9f216ed01188d7e0e784d272c3057f5452a3959 /include/libnftnl/ruleset.h | |
parent | 1f92b04760f65c28498e7c4e20e8037fe66ecf44 (diff) |
ruleset: add nft_ruleset_ctx_free
This function releases the ruleset objects attached in the parse context
structure, ie. struct nft_parse_ctx.
Moreover, this patch updates the nft_parse_ruleset_file to use it.
Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/ruleset.h')
-rw-r--r-- | include/libnftnl/ruleset.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnftnl/ruleset.h b/include/libnftnl/ruleset.h index aa1d92d..fe5e44f 100644 --- a/include/libnftnl/ruleset.h +++ b/include/libnftnl/ruleset.h @@ -51,6 +51,7 @@ enum { }; struct nft_parse_ctx; +void nft_ruleset_ctx_free(const struct nft_parse_ctx *ctx); bool nft_ruleset_ctx_is_set(const struct nft_parse_ctx *ctx, uint16_t attr); void *nft_ruleset_ctx_get(const struct nft_parse_ctx *ctx, uint16_t attr); uint32_t nft_ruleset_ctx_get_u32(const struct nft_parse_ctx *ctx, |