On Tue, Oct 5, 2010 at 12:28 AM, Mulyadi Santosa <[email protected]>wrote:
> Hi ... > > On Tue, Oct 5, 2010 at 11:19, Vimal <[email protected]> wrote: > > Hi, > > > > I created a persistent tap device (tap0) using tunctl. The examples > > from tunctl source code claim that a /dev/tap0 character device will > > be created that we can read from/write to. However, I am not able to > > find any tap0 device in /dev directory. How exactly do I open the > > tap0 device? > > Most of the times, network related devices aren't represented as file > inside /dev. This is...well, you might think,against common sense that > "everything is file" under Linux. > tun/tap are the exception to the exception to the rule. In other works network drives normally do not appear in /dev/ or as a file, but tun/tap do at least in my using them over the past 4 years. OpenVpn is a high profile known user of tun/tap, you may want to check there as a start. Are you sure you have the tun/tap driver loaded. The simplest program example using tun/tap is vtun. Another is tinc. I would confirm the driver is loaded and test one of these programs or view the source of vtun since it is the simplest. -- John
