]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_hook: missing chain family
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 2 Aug 2021 22:15:54 +0000 (00:15 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 6 Aug 2021 15:07:40 +0000 (17:07 +0200)
commite30b057f8f617d46e12b69a87f88c904ec72fa98
tree948f32beaadf01ac69c101142c56ee20b6e683ca
parentda489546eea2db6370ce2668fdd98389346dfec3
netfilter: nfnetlink_hook: missing chain family

The family is relevant for pseudo-families like NFPROTO_INET
otherwise the user needs to rely on the hook function name to
differentiate it from NFPROTO_IPV4 and NFPROTO_IPV6 names.

Add nfnl_hook_chain_desc_attributes instead of using the existing
NFTA_CHAIN_* attributes, since these do not provide a family number.

Fixes: 3da6980af338 ("netfilter: add new hook nfnl subsystem")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nfnetlink_hook.h
net/netfilter/nfnetlink_hook.c