Hier is link with my diagram TUN TAP communication.<br><a href="http://abebe.wz.cz/vut.html">http://abebe.wz.cz/vut.html</a><br><br>Blocks on the diagram:<br>---------------------------------<br><br>Aplikace - something application which use virtual network interface<br>
/dev/net/tun - virtual network interface -> it is OK?<br>universal TUN TAP interface - driver for virtual network interface -> it is OK?<br>ovladac eth0 - driver eth0 (sorry for czech language:) )<br>eth0 - NIC (physical hardware)<br>
<br><br>White narrow - show route (way) outgoing (data from application to the network)<br>red narrow - show route (way) incoming (data from the network to the application)<br><br>OUTGOING communication<br>------------------------------------<br>
1)App send data (with virtual IP) to the TCP/IP stack.<br> <br>2)TCP/IP stack decide that data are determined for virtual network interface and send <br><br>    they to the universal TUN TAP interface.<br><br>3)universal TUN TAP interface send data to the /dev/net/tun<br>
<br>4)/dev/net/tun send data to the TCP/IP stack<br><br>5)TCP/IP stack send data to eth0 driver<br><br>6)eth0 driver send data to NIC<br><br>INCOMING communication<br>-------------------------------------<br>1)From the NIC to eth0 driver<br>
2)From eth0 driver to TCP/IP stack<br>3)From TCP/IP stack to universal TUN TAP interface<br>4)From universal TUN TAP interface to /dev/net/tun<br>5)From /dev/net/tun to Application<br><br>Thanks for your help.<br>Regard Pavel