netfilter: nf_tables: add userdata support for nft_object
authorJose M. Guisado Gomez <guigom@riseup.net>
Tue, 8 Sep 2020 11:01:41 +0000 (13:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 Sep 2020 14:35:38 +0000 (16:35 +0200)
commitb131c96496b369c7b14125e7c50e89ac7cec8051
treeceb2c2d25f74a9e5e99060cac28c54d04fe053b7
parent0c5edd77a21dc863aa7639ea07c9d7a5b15f62f9
netfilter: nf_tables: add userdata support for nft_object

Enables storing userdata for nft_object. Initially this will store an
optional comment but can be extended in the future as needed.

Adds new attribute NFTA_OBJ_USERDATA to nft_object.

Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net>
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