]> git.itanic.dy.fi Git - linux-stable/commit
netfilter: nf_tables: add nft_setelem_parse_key()
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 27 May 2023 16:08:05 +0000 (18:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:38:37 +0000 (12:38 +0100)
commit8f9be0b46fcbab02af3567a30be496b4e9568686
tree48c79bd68721a1dff7c1dfc440eb6976c3e3fb40
parentcc7bc8c78e78ede377e0fc04e05b6b0d6232b0c3
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_tables_api.c