xdp-project / xdp-tutorial

XDP tutorial
2.43k stars 574 forks source link

Question about packet process #188

Open SilenceVapor opened 3 years ago

SilenceVapor commented 3 years ago

Hi everyone,

I want to know whether XDP can remove some data from a packet and then send these data to user space.

Thanks in advance!

tohojo commented 3 years ago

Sure. You can modify the packet any way you like, and use the perf ring-buffer to send arbitrary data to userspace.