diff options
Diffstat (limited to 'lib/testing/xdp_drop.c')
-rw-r--r-- | lib/testing/xdp_drop.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/testing/xdp_drop.c b/lib/testing/xdp_drop.c new file mode 100644 index 0000000..dc82f5c --- /dev/null +++ b/lib/testing/xdp_drop.c @@ -0,0 +1,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"; |