]> 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)
commit9adb681d3740ec3421adad920941beaa6159226a
tree488fcc71dc57ff88810f10449a09ad5bec00f6c6
parent53a2e784dd1c99eddff121521fd0f3c21618c112
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: 3da6980af338 ("netfilter: add new hook nfnl subsystem")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_hook.c