]> git.itanic.dy.fi Git - linux-stable/commit
netfilter: nf_tables: add nft_setelem_parse_key()
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Jan 2020 23:17:51 +0000 (00:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 27 Jan 2020 07:54:30 +0000 (08:54 +0100)
commit20a1452c35425b2cef76f21f8395ef069dfddfa9
treeb90550d731c6cff79e100ea10758dd76dbdcfc36
parent32efcc06d2a15fa87585614d12d6c2308cc2d3f3
netfilter: nf_tables: add nft_setelem_parse_key()

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>
net/netfilter/nf_tables_api.c