Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi,
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.