Add tcpfilter example

This commit is contained in:
Pim Kunis 2024-12-24 21:34:28 +01:00
parent 066d9972cc
commit 6e8387a0a4
5 changed files with 58 additions and 2 deletions

View file

@ -3,7 +3,7 @@
SEC("xdp")
int xdp_drop(struct xdp_md *ctx) {
return XDP_DROP; // Drop all packets
return XDP_PASS; // Drop all packets
}
char LICENSE[] SEC("license") = "GPL";