Hi all, I am trying to follow this TUN/TAP tutorial. While I was able to get the C code to run just fine. Something weird happens when I translate the code to Rust.
Here is my attempt at writing the code to allocate the tuntap interface.. After executing the
TUN_SET_IFF ioctl on this line I get an
I have no idea what’s going wrong with the code. The struct passed to the
TUN_SET_IFF ioctl is identical as far as I can see
e: There is nothing wrong with the permissions on the persistent tap device “
my_premade_tap”. I tested it with C and it works.