在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);
}
在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/archive/2012/09/21/2696438.html