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
168 B
C
11 lines
168 B
C
3 years ago
|
#include <linux/bpf.h>
|
||
|
#include <bpf/bpf_helpers.h>
|
||
|
|
||
|
SEC("xdp/drop")
|
||
|
int xdp_drop(struct xdp_md *ctx)
|
||
|
{
|
||
|
return XDP_DROP;
|
||
|
}
|
||
|
|
||
2 years ago
|
char _license[] SEC("license") = "GPL";
|