1

I'm going to open a tun/tap file descriptor with f = os.open("/dev/net/tun", 'r+w') it says you should choose only one option which are create append read write. But i need to be able to read and write from/into it. so i had to add buffering=0, Now it works with read and write . But the speed of reading and writing of the tun is slow. I think it is related to buffering that i set it to 0

I want to know that is the speed of reading and writing related to buffering?
What i have to do to be able to have the tun opened with read and write ability without setting buffering to 0?

amir ghorbani
  • 123
  • 2
  • 3
  • 10

0 Answers0