From dde20393f929f22636dcedd82e5a2fe81394139e Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Fri, 7 Jun 2013 00:52:17 +0000 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- include/libnftables/rule.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libnftables/rule.h') diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h index 9c4ab0d..9989f19 100644 --- a/include/libnftables/rule.h +++ b/include/libnftables/rule.h @@ -23,6 +23,7 @@ enum { NFT_RULE_ATTR_COMPAT_FLAGS, }; +void nft_rule_attr_unset(struct nft_rule *r, uint16_t attr); void nft_rule_attr_set(struct nft_rule *r, uint16_t attr, const void *data); void nft_rule_attr_set_u32(struct nft_rule *r, uint16_t attr, uint32_t val); void nft_rule_attr_set_u64(struct nft_rule *r, uint16_t attr, uint64_t val); -- cgit v1.2.3