diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-06-24 16:27:00 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-07-21 02:34:29 +0200 |
commit | 20e0e8f2bec3b06ba5d77ec17d8e635750f4c085 (patch) | |
tree | 3b0ea888c0d2f7a3d58745ff368029564858be9e /include/libnftnl | |
parent | eedafeb6db330b8adff1b7cdd3dac325f9144195 (diff) |
src: add support for chain ID attribute
his patch allows you to refer to chains via the chain ID. The semantics
are similar to the NFTA_RULE_ID attribute.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftnl')
-rw-r--r-- | include/libnftnl/chain.h | 1 | ||||
-rw-r--r-- | include/libnftnl/expr.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/libnftnl/chain.h b/include/libnftnl/chain.h index 291bf22..0e57a5a 100644 --- a/include/libnftnl/chain.h +++ b/include/libnftnl/chain.h @@ -33,6 +33,7 @@ enum nftnl_chain_attr { NFTNL_CHAIN_DEV, NFTNL_CHAIN_DEVICES, NFTNL_CHAIN_FLAGS, + NFTNL_CHAIN_ID, __NFTNL_CHAIN_MAX }; #define NFTNL_CHAIN_MAX (__NFTNL_CHAIN_MAX - 1) diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h index cfe456d..dcbcf5c 100644 --- a/include/libnftnl/expr.h +++ b/include/libnftnl/expr.h @@ -98,6 +98,7 @@ enum { NFTNL_EXPR_IMM_DATA, NFTNL_EXPR_IMM_VERDICT, NFTNL_EXPR_IMM_CHAIN, + NFTNL_EXPR_IMM_CHAIN_ID, }; enum { |