SiliconLabs / wisun-br-linux

Silicon Labs Wi-SUN Linux border router reference implementation
https://www.silabs.com/wireless/wi-sun
Other
37 stars 14 forks source link

rtnl_link_add tun0: Invalid input data or parameter #5

Closed LZHHZLLZH closed 1 year ago

LZHHZLLZH commented 1 year ago

I tried to run wsbrd on a mips-core platform, but I got the following error: rtnl_link_add tun0: Invalid input data or parameter I tried to use "ip tuntap add dev tap0 mod tap" command directly, and it works. Therefore, I don't know why this error occurs. I used libnl3.7 and libnl3.2.26, but both have this problem

MathisMARION commented 1 year ago

Hello, we have managed to reproduce the issue using QEMU and libnl version 3.4. In the meantime you should be able to run wsbrd by configuring manually your network interface as described in the section "Running wsbrd Without Root Privilege" of the README. This issue may be caused by libnl.

MathisMARION commented 1 year ago

Just to keep you up to date, the error I was getting turned out to be caused by the emulator missing some endianness conversions. I submitted a couple patches to QEMU, which are now integrated. This means that we cannot reproduce your issue however, I hope it is not critical.

jerome-pouiller commented 1 year ago

Can't reproduce the issue. It is probably caused by the version of libnl.

Reopen if I missed something.