xdp-project / xdp-tools

Utilities and example programs for use with XDP
Other
629 stars 133 forks source link

some errors when I attch the xdpdump_xdp.o to 'ens33' #230

Open zdsldsm opened 1 year ago

zdsldsm commented 1 year ago

Hello, As shown in the error message below, when I try to load the xdpdumpxdp.o, I will be prompted that the permission is not allowed, but I can load some files normally, such as xdpfilt alw_ all.o. I think it may involve memory copy. Could you pleasw give me some suggesstions? How do you get the data packets' payload in xdp? Thank you!

sudo ./xdp-loader load -m skb ens33 xdpdump_xdp.o Couldn't attach XDP program on iface 'ens33': Permission denied(-13)

zdsldsm commented 1 year ago

the version info is here

$ sudo cat /proc/version

Linux version 5.15.0-48-generic (buildd@lcy02-amd64-080) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #54-Ubuntu SMP Fri Aug 26 13:26:29 UTC 2022

tohojo commented 1 year ago

Is this still an issue on the current master? If so, please include the debug log out output of that load command (add -vv)