3 ms·
I see. Thanks for the clarification. I need to read up more on XDP Schemas and headers. Might you or anyone else have any resources you found helpful?
by bogomipz 6y ago
I see. Thanks for the clarification. I need to read up more on XDP Schemas and headers. Might you or anyone else have any resources you found helpful?
- tptacek 6y agoThere's not much to know! "XDP" is really just the Linux term of art for "BPF running directly off the network driver". Your BPF program --- ordinarily, just a C program you compiled with clang --- is given a struct with pointers to the beginning and end of a packet, and your program can return OK, DROP, or REDIRECT, in addition to modifying the packet. The XDP project itself has a pretty excellent tutorial: https://github.com/xdp-project/xdp-tutorial https://github.com/xdp-project/xdp-tutorial
- deleted 6y ago[deleted]