Need help on TUN/TAP
Iam new to TUN/TAP.
I have writen a small socket program to send RAW ethernet packets and have created TAP interface to keep reading these packets using a small application program.
The Applicaton opens "/dev/net/tun" and iam using the read() call to fetch any ethernet packets.
Iam using Linux 2.6.18 fc6.Iam unable to read any ethernet packets.Ethereal shows packets coming out of physical interface.
What am i doing wrong?I even gave 777 permission to "/dev/net/tun"
can any body give a pointer to this so that i can read packts in user space.
Thanks in Advance