ebpf-beginners icon indicating copy to clipboard operation
ebpf-beginners copied to clipboard

packet.py doesn't work

Open wangsu502 opened this issue 2 years ago • 2 comments

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

wangsu502 avatar Jul 05 '22 06:07 wangsu502