diff --git a/xdp/README.md b/xdp/README.md new file mode 100644 index 0000000..5ab7b9e --- /dev/null +++ b/xdp/README.md @@ -0,0 +1,17 @@ +Compile: + +``` +clang -O2 -Wall -target bpf -c main.c -o main.o +``` + +Load: + +``` +ip link set dev lo xdp obj main.o +``` + +Unload: + +``` +ip link set dev lo xdp off +``` diff --git a/XDP/xdp_udp.c b/xdp/xdp_udp.c similarity index 100% rename from XDP/xdp_udp.c rename to xdp/xdp_udp.c