Quentin Dufour
70aee3087b
- We can use the structure not only to read the packet but also to modify it - Binary OR/AND are done with single chars, eg. & or | while logical OR/AND are done with 2 chars, eg. && or || |
||
---|---|---|
.. | ||
README.md | ||
xdp_udp.c |
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