tun device use ioctl rather than ssystem