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

相关文章:

  • 2021-06-12
  • 2021-08-05
  • 2021-12-02
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-03-09
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
相关资源
相似解决方案