summaryrefslogtreecommitdiffstats
path: root/include/libnftables/chain.h
diff options
context:
space:
mode:
authorArturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>2013-06-07 00:52:17 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-07 14:00:20 +0200
commitdde20393f929f22636dcedd82e5a2fe81394139e (patch)
treeae5f46c3a934bc88d188d1c7d1dd11934709287d /include/libnftables/chain.h
parent0be2e081db4b6adf2e7fb16fe528c28c35a1f0c2 (diff)
src: add nft_*_unset functions
These functions unset the given attribute in each object and release the data if needed. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/chain.h')
-rw-r--r--include/libnftables/chain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnftables/chain.h b/include/libnftables/chain.h
index b12474f..f06f743 100644
--- a/include/libnftables/chain.h
+++ b/include/libnftables/chain.h
@@ -26,6 +26,7 @@ enum {
NFT_CHAIN_ATTR_TYPE,
};
+void nft_chain_attr_unset(struct nft_chain *c, uint16_t attr);
void nft_chain_attr_set(struct nft_chain *t, uint16_t attr, const void *data);
void nft_chain_attr_set_u32(struct nft_chain *t, uint16_t attr, uint32_t data);
void nft_chain_attr_set_s32(struct nft_chain *t, uint16_t attr, int32_t data);