path: root/include
diff options
authorAlvaro Neira <>2015-03-12 17:33:09 +0100
committerPablo Neira Ayuso <>2015-03-13 12:18:20 +0100
commitd27456460a2867d69a6bbed8aa0019f65ab42eac (patch)
treec9f216ed01188d7e0e784d272c3057f5452a3959 /include
parent1f92b04760f65c28498e7c4e20e8037fe66ecf44 (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 <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
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,