netfilter: nf_tables: NFTA_SET_ELEM_KEY_END requires concat and interval flags
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 12 Aug 2022 14:21:28 +0000 (16:21 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Aug 2022 15:54:51 +0000 (17:54 +0200)
commit88cccd908d51397f9754f89a937cd13fa59dee37
tree8b82734d724baa8474ac0b099370639dfdaeac5b
parent5a2f3dc31811e93be15522d9eb13ed61460b76c8
netfilter: nf_tables: NFTA_SET_ELEM_KEY_END requires concat and interval flags

If the NFT_SET_CONCAT|NFT_SET_INTERVAL flags are set on, then the
netlink attribute NFTA_SET_ELEM_KEY_END must be specified. Otherwise,
NFTA_SET_ELEM_KEY_END should not be present.

For catch-all element, NFTA_SET_ELEM_KEY_END should not be present.
The NFT_SET_ELEM_INTERVAL_END is never used with this set flags
combination.

Fixes: 7b225d0b5c6d ("netfilter: nf_tables: add NFTA_SET_ELEM_KEY_END attribute")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c