xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

Question about packet process

Open SilenceVapor opened this issue 3 years ago • 1 comments

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!

SilenceVapor avatar Jan 20 '21 06:01 SilenceVapor

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

tohojo avatar Jan 20 '21 10:01 tohojo