xref: /linux/tools/testing/selftests/bpf/progs/test_netfilter_link_attach.c (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 
3 #include "vmlinux.h"
4 #include <bpf/bpf_helpers.h>
5 
6 #define NF_ACCEPT 1
7 
8 SEC("netfilter")
nf_link_attach_test(struct bpf_nf_ctx * ctx)9 int nf_link_attach_test(struct bpf_nf_ctx *ctx)
10 {
11 	return NF_ACCEPT;
12 }
13 
14 char _license[] SEC("license") = "GPL";
15