diff options
author | Brett Mastbergen <brett.mastbergen@gmail.com> | 2020-05-01 13:55:35 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-05-01 21:12:06 +0200 |
commit | dcec7d57559a1fdfe50e2ae2529bf1636dd57844 (patch) | |
tree | f02f5c997e051dfc17c9bd960e97dfa2e8c41858 /src/ct.c | |
parent | e68938f2bf89fcc9a99e12c9b7a10c1838f2a133 (diff) |
ct: Add support for the 'id' key
The 'id' key allows for matching on the id of the conntrack entry.
v2: Remove ct_id_type
Signed-off-by: Brett Mastbergen <brett.mastbergen@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/ct.c')
-rw-r--r-- | src/ct.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -301,6 +301,8 @@ const struct ct_template ct_templates[__NFT_CT_MAX] = { BYTEORDER_BIG_ENDIAN, 128), [NFT_CT_SECMARK] = CT_TEMPLATE("secmark", &integer_type, BYTEORDER_HOST_ENDIAN, 32), + [NFT_CT_ID] = CT_TEMPLATE("id", &integer_type, + BYTEORDER_BIG_ENDIAN, 32), }; static void ct_print(enum nft_ct_keys key, int8_t dir, uint8_t nfproto, |