Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-19-2009, 04:01 AM   #1
LQ Newbie
Registered: May 2006
Posts: 10

Rep: Reputation: 0
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

Old 06-22-2009, 11:18 AM   #2
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Some documentation for you:



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem wih tun/tap birjodh Linux - General 1 06-23-2007 07:52 AM
tun tap query karan84 Linux - Networking 1 03-26-2007 11:29 AM
tun tap doubt karan84 Linux - Networking 2 01-10-2007 01:43 AM
Tun/Tap issue minasafwat Linux - Kernel 0 11-14-2006 01:11 AM
Tun/Tap getting started? blavo Linux - Newbie 0 02-14-2006 10:29 AM

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration