Can you write multiple IP packets in one write to the linux tun device?

StackOverflow https://stackoverflow.com/questions/17846089

  •  04-06-2022
  •  | 
  •  

سؤال

I have seen (by actually reading a tun device) that the tun driver on linux can return multiple IP packets in a single read. Is the reverse true - can you write multiple IP packets in a single write to the tun device?

هل كانت مفيدة؟

المحلول

Actually multiple packets were returned by the driver because it had been enhanced locally. The tun driver that comes with linux only returns one packet per read. The driver also expects only one packet per write.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top