aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/test_netfilter_link_attach.c
blob: 03a475160abe77b4ff048d13469395a826be5f51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: GPL-2.0-or-later

#include "vmlinux.h"
#include <bpf/bpf_helpers.h>

#define NF_ACCEPT 1

SEC("netfilter")
int nf_link_attach_test(struct bpf_nf_ctx *ctx)
{
	return NF_ACCEPT;
}

char _license[] SEC("license") = "GPL";