aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2025-05-21 22:44:32 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2025-05-23 13:57:14 +0200
commit6d07a289504a246aa97cdac0fec61a15834801b7 (patch)
treef3c94e58190890a65faa49e3913c3d857e10178a /tools/perf/util/scripting-engines/trace-event-python.c
parentnetfilter: nf_tables: Sort labels in nft_netdev_hook_alloc() (diff)
downloadwireguard-linux-6d07a289504a246aa97cdac0fec61a15834801b7.tar.xz
wireguard-linux-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 <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions