]> git.itanic.dy.fi Git - linux-stable/commit
netfilter: nf_tables: add nft_setelem_parse_key()
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 16 May 2023 14:44:31 +0000 (16:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:07 +0000 (12:44 +0100)
commit28fe10236a64c544cd26da6eebec42f21bc15430
treefdc1f92e9ecb917ca2e2f14633db8464c84e81f4
parenteb5b579bd69fc918795ebf62bb836b494d56344b
netfilter: nf_tables: add nft_setelem_parse_key()

20a1452c35425b2cef76f21f8395ef069dfddfa9 ]

Add helper function to parse the set element key netlink attribute.

v4: No changes
v3: New patch

[sbrivio: refactor error paths and labels; use NFT_DATA_VALUE_MAXLEN
  instead of sizeof(*key) in helper, value can be longer than that;
  rebase]
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c