summaryrefslogtreecommitdiffstats
path: root/include/libnftnl/chain.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-12-30 17:02:13 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-01-14 22:33:56 +0100
commitde5a23d26828a1e1f2d3351b0414925857546496 (patch)
treef4d510f63d9a2f13e0bf639237dafc021abe2326 /include/libnftnl/chain.h
parentf8eed54150fd49ed814e63a5db39eda67d4b3938 (diff)
src: chain: Add missing nftnl_chain_rule_del()
Although identical to nftnl_rule_list_del(), this function adheres to the common naming style of per chain rule list routines introduced earlier, therefore helps with deprecating the global rule list API at a later point. Fixes: e33798478176f ("chain: Support per chain rules list") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/chain.h')
-rw-r--r--include/libnftnl/chain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnftnl/chain.h b/include/libnftnl/chain.h
index 64e10e9..163a824 100644
--- a/include/libnftnl/chain.h
+++ b/include/libnftnl/chain.h
@@ -56,6 +56,7 @@ int32_t nftnl_chain_get_s32(const struct nftnl_chain *c, uint16_t attr);
uint64_t nftnl_chain_get_u64(const struct nftnl_chain *c, uint16_t attr);
void nftnl_chain_rule_add(struct nftnl_rule *rule, struct nftnl_chain *c);
+void nftnl_chain_rule_del(struct nftnl_rule *rule);
void nftnl_chain_rule_add_tail(struct nftnl_rule *rule, struct nftnl_chain *c);
void nftnl_chain_rule_insert_at(struct nftnl_rule *rule, struct nftnl_rule *pos);