mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
195 B
C
11 lines
195 B
C
3 years ago
|
#include <linux/bpf.h>
|
||
|
#include <bpf/bpf_helpers.h>
|
||
|
#include <bpf/bpf_endian.h>
|
||
|
|
||
|
SEC("xdp/drop")
|
||
|
int xdp_drop(struct xdp_md *ctx)
|
||
|
{
|
||
|
return XDP_DROP;
|
||
|
}
|
||
|
|
||
|
char _license[] SEC("license") = "GPL";
|