]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56d1146d3f1acf8941c73b50b27ec3e466c297de
treeceb2c2d25f74a9e5e99060cac28c54d04fe053b7
parente15a8dc4108d11da496e11485a9bcd83b9e4beeb
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