Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zdsldsm opened this issue Sep 28, 2022 · 2 comments
Open

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

zdsldsm opened this issue Sep 28, 2022 · 2 comments

Comments

@zdsldsm
Copy link

zdsldsm commented Sep 28, 2022

Hello, As shown in the error message below, when I try to load the xdpdump_xdp.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
Copy link
Author

zdsldsm commented Sep 28, 2022

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
Copy link
Member

tohojo commented Dec 12, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants