vtun tun_write tun_read对TUN设备的读写函数

在tun_dev.c中定义:

int tun_write(int fd, char *buf, int len)
{
    return write(fd, buf, len);
}

int tun_read(int fd, char *buf, int len)
{
    return read(fd, buf, len);
}

原文地址:https://www.cnblogs.com/helloweworld/p/2696438.html