]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: add NFTA_SET_ELEM_KEY_END attribute
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Jan 2020 23:17:52 +0000 (00:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 27 Jan 2020 07:54:30 +0000 (08:54 +0100)
commitcbdbae9484b30547355ddc7775e41c17b362ad2a
treea6d785a0fbfc1c331325a8600b25c490ef692381
parenta055fe62aa60f4918d2400f7ad5e129f16bcde95
netfilter: nf_tables: add NFTA_SET_ELEM_KEY_END attribute

Add NFTA_SET_ELEM_KEY_END attribute to convey the closing element of the
interval between kernel and userspace.

This patch also adds the NFT_SET_EXT_KEY_END extension to store the
closing element value in this interval.

v4: No changes
v3: New patch

[sbrivio: refactor error paths and labels; add corresponding
  nft_set_ext_type for new key; rebase]
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nft_dynset.c