Closed emanuele-em closed 10 months ago
On this line
program.attach(&opt.iface, TcAttachType::Egress)?; //&opt.iface = wlo1
the program always return:
Error: netlink error while attaching ebpf program to tc Caused by: Invalid argument (os error 22)
I'm using Arch linux with kernel version 6.6.6-arch1-1 Rust version is 1.75 stable
p.s. other programs like XDP correctly compile and run
Can you run your program under strace -e trace=network -s10000000 and attach the output?
Sorry for this issue, now it works correctly, something went wrong with the cache.
On this line
the program always return:
I'm using Arch linux with kernel version 6.6.6-arch1-1 Rust version is 1.75 stable
p.s. other programs like XDP correctly compile and run