OSDN Git Service

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