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

packet.py doesn't work #3

Open
wangsu502 opened this issue Jul 5, 2022 · 2 comments
Open

packet.py doesn't work #3

wangsu502 opened this issue Jul 5, 2022 · 2 comments

Comments

@wangsu502
Copy link

Hi Liz,
I got the following error, could you help to figure out what was wrong?

root@iubuntu2004:~/ebpf-beginners# python3.9 packet.py
bpf: Attaching prog to eth0: Operation not supportedTraceback (most recent call last):
File "/root/ebpf-beginners/packet.py", line 32, in
b.attach_xdp(dev="eth0", fn=b.load_func("hello_packet",
File "/usr/lib/python3/dist-packages/bcc/init.py", line 726, in attach_xdp
raise Exception("Failed to attach BPF to device %s: %s"
Exception: Failed to attach BPF to device b'eth0': Success

@peiqiaoWang
Copy link

same problem

@ntk148v
Copy link

ntk148v commented Nov 25, 2022

Hi @peiqiaoWang @wangsu502, just change eth0 with your actual network interface, for example: ens3.

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

3 participants