]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfilter: nf_tables: Add notifications for hook changes
authorPhil Sutter <phil@nwl.cc>
Wed, 21 May 2025 20:44:33 +0000 (22:44 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 May 2025 11:57:14 +0000 (13:57 +0200)
commit465b9ee0ee7bc268d7f261356afd6c4262e48d82
tree699278d521cf7e7c23e91f004d718da349c96340
parent6d07a289504a246aa97cdac0fec61a15834801b7
netfilter: nf_tables: Add notifications for hook changes

Notify user space if netdev hooks are updated due to netdev add/remove
events. Send minimal notification messages by introducing
NFT_MSG_NEWDEV/DELDEV message types describing a single device only.

Upon NETDEV_CHANGENAME, the callback has no information about the
interface's old name. To provide a clear message to user space, include
the hook's stored interface name in the notification.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/uapi/linux/netfilter/nf_tables.h
include/uapi/linux/netfilter/nfnetlink.h
net/netfilter/nf_tables_api.c
net/netfilter/nfnetlink.c
net/netfilter/nft_chain_filter.c