summaryrefslogtreecommitdiffstats
path: root/lib/testing/xdp_drop.c
blob: dc82f5cfa841a55ae8e61386873a9872bea3101e (plain)
1
2
3
4
5
6
7
8
9
10
#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>

SEC("xdp")
int xdp_drop(struct xdp_md *ctx)
{
    return XDP_DROP;
}

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