]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_hook: Use same family as request message
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 3 Aug 2021 23:27:20 +0000 (01:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 6 Aug 2021 15:07:41 +0000 (17:07 +0200)
commit3577455ae2810e9384150c1d8d0cc613931e015b
tree488fcc71dc57ff88810f10449a09ad5bec00f6c6
parentf1d2ac575165c8b9fcfd65e7defb97e1bd00e5ba
netfilter: nfnetlink_hook: Use same family as request message

Use the same family as the request message, for consistency. The
netlink payload provides sufficient information to describe the hook
object, including the family.

This makes it easier to userspace to correlate the hooks are that
visited by the packets for a certain family.

Fixes: 4d45a1287f09 ("netfilter: add new hook nfnl subsystem")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_hook.c