projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
880ccec
)
netfilter: nf_tables: Compare netdev hooks based on stored name
author
Phil Sutter
<phil@nwl.cc>
Thu, 9 Jan 2025 17:31:35 +0000
(18:31 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Sun, 19 Jan 2025 15:41:53 +0000
(16:41 +0100)
The 1:1 relationship between nft_hook and nf_hook_ops is about to break,
so choose the stored ifname to uniquely identify hooks.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index 87175cd1d39b163f433422b2a2764809da01da64..ed15c52e3c6513f40a331b7798d0ed6f9e1bd2df 100644
(file)
--- a/
net/netfilter/nf_tables_api.c
+++ b/
net/netfilter/nf_tables_api.c
@@
-2317,7
+2317,7
@@
static struct nft_hook *nft_hook_list_find(struct list_head *hook_list,
struct nft_hook *hook;
list_for_each_entry(hook, hook_list, list) {
- if (
this->ops.dev == hook->ops.dev
)
+ if (
!strcmp(hook->ifname, this->ifname)
)
return hook;
}