LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

Rep: Reputation: 0
Need help on TUN/TAP


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.

Thanks in Advance

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

Rep: Reputation: 47
Some documentation for you:
http://www.gelato.unsw.edu.au/lxr/so...ing/tuntap.txt
 
  


Reply

Tags
tuntap


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 01:49 PM.

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