[tun/tap] An introduction of TUN/TAP


TUN/TAP provides packet reception and transmission for user space programs. 
It can be viewed as a simple Point-to-Point or Ethernet device, which 
instead of receiving packets from a physical media, receives them from 
user space program and instead of sending packets via physical media 
writes them to the user space program. 

When a program opens /dev/net/tun, driver creates and registers corresponding
net device tunX or tapX. After a program closed above devices, driver will 
automatically delete tunX or tapX device and all routes corresponding to it.
And also, here is a web site about Universal TUN/TAP device driver Frequently Asked Question.

The description of Universal TUN/TAP device driver


Anonymous said…
Can you specifically tell us in which case we can use these interfaces and how to implement it on a linux machine?

Popular posts from this blog

[Open vSwitch] How to get port statistics from interface in OVS

[Quagga] How to compile and install Quagga on Ubuntu 12.04

[JSON] How to use jansson lib to generate JSON data in C