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);
}

posted @ 2012-09-21 10:04  helloweworld  阅读(569)  评论(0编辑  收藏  举报