4 ms·
I found this tutorial [0] and example [1] how to read/update BPF hashtable data from python bcc module. If UDP packet structure is not too complex, it might be
by python273 5y ago
I found this tutorial [0] and example [1] how to read/update BPF hashtable data from python bcc module. If UDP packet structure is not too complex, it might be not too hard to implement I guess.
[0] https://duo.com/labs/tech-notes/writing-an-xdp-network-filter-with-ebpf#section8 https://duo.com/labs/tech-notes/writing-an-xdp-network-filte...
[1] https://lwn.net/Articles/747640/ https://lwn.net/Articles/747640/