Files
aya-mirror/test/integration-test/bpf/ext.bpf.c
Tamir Duberstein 71bc3ea0b5 integration-test: avoid reliance on kernel headers
This should allow us to build on any system.
2023-08-09 10:18:05 -04:00

10 lines
196 B
C

// clang-format off
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
// clang-format on
SEC("xdp")
int xdp_drop(struct xdp_md *ctx) { return XDP_DROP; }
char _license[] SEC("license") = "GPL";