diff options
| author | Phil Sutter <[email protected]> | 2025-05-21 20:44:32 +0000 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2025-05-23 11:57:14 +0000 |
| commit | 6d07a289504a246aa97cdac0fec61a15834801b7 (patch) | |
| tree | f3c94e58190890a65faa49e3913c3d857e10178a /net/core/dev_api.c | |
| parent | netfilter: nf_tables: Sort labels in nft_netdev_hook_alloc() (diff) | |
| download | kernel-6d07a289504a246aa97cdac0fec61a15834801b7.tar.gz kernel-6d07a289504a246aa97cdac0fec61a15834801b7.zip | |
netfilter: nf_tables: Support wildcard netdev hook specs
User space may pass non-nul-terminated NFTA_DEVICE_NAME attribute values
to indicate a suffix wildcard.
Expect for multiple devices to match the given prefix in
nft_netdev_hook_alloc() and populate 'ops_list' with them all.
When checking for duplicate hooks, compare the shortest prefix so a
device may never match more than a single hook spec.
Finally respect the stored prefix length when hooking into new devices
from event handlers.
Signed-off-by: Phil Sutter <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions
