]> 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)
commitc0d9534ea59d403cde3a721e9c295d317e7fb3db
treea6d785a0fbfc1c331325a8600b25c490ef692381
parent57282526948a4c25fbf82f6470ab88300aa2d191
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