diff options
author | Jose M. Guisado Gomez <guigom@riseup.net> | 2020-09-21 15:28:22 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-09-30 12:08:06 +0200 |
commit | 76b82c425818ee246ed1100997d6e2a09f07976f (patch) | |
tree | 7db8d698bff0a259bfa69dd387019b0eec0c05fc /include/libnftnl/chain.h | |
parent | e0dfd0df703f6eb5a3f2a73cd63914057ca4a4a0 (diff) |
chain: add userdata and comment support
Adds NFTNL_CHAIN_USERDATA, in order to support userdata for chains.
Adds NFTNL_UDATA_CHAIN_COMMENT chain userdata type to support storing a
comment.
Relies on NFTA_CHAIN_USERDATA.
Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl/chain.h')
-rw-r--r-- | include/libnftnl/chain.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnftnl/chain.h b/include/libnftnl/chain.h index 0e57a5a..f56e581 100644 --- a/include/libnftnl/chain.h +++ b/include/libnftnl/chain.h @@ -34,6 +34,7 @@ enum nftnl_chain_attr { NFTNL_CHAIN_DEVICES, NFTNL_CHAIN_FLAGS, NFTNL_CHAIN_ID, + NFTNL_CHAIN_USERDATA, __NFTNL_CHAIN_MAX }; #define NFTNL_CHAIN_MAX (__NFTNL_CHAIN_MAX - 1) |