From: Jeff Dike <jdike@karaya.com>
To: "Shiva Raman Pandey" <shiva@sasken.com>
Cc: kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org
Subject: Re: Query about Tun/Tap Modules
Date: Sun, 09 Sep 2001 12:46:40 -0500 [thread overview]
Message-ID: <200109091746.MAA02088@ccure.karaya.com> (raw)
In-Reply-To: Your message of "Sun, 09 Sep 2001 20:58:56 +0530." <9ng1q4$or1$1@ncc-z.sasken.com>
shiva@sasken.com said:
> Q1 : Now I am not able to understand how to use this module for my
> above stated purpose.
> If anybody has used this utility(Tun/tap) before , please let me
> know how to get these ethernet packet going towards IP layer and IP
> packets going towards ethernet driver.
It's not clear how similar my use of TUN/TAP is to what you want, but UML uses
TUN/TAP as one mechanism to network a virtual machine to the host, and it
works quite well.
See tuntap_up() in
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/user-mode-linux/tools/uml_net/uml_net.c?rev=1.10&content-type=text/vnd.viewcvs-markup
for setting up a TUN/TAP interface and
tuntap_user_read() and tuntap_user_write() (which are both trivial)
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/user-mode-linux/linux/arch/um/drivers/tuntap_user.c?rev=1.2&content-type=text/vnd.viewcvs-markup
for getting packets in and out of the interface.
Jeff
next prev parent reply other threads:[~2001-09-09 16:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-09 15:28 Query about Tun/Tap Modules Shiva Raman Pandey
2001-09-09 15:59 ` Erik Andersen
2001-09-09 16:13 ` Peter T. Breuer
2001-09-09 17:46 ` Jeff Dike [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-09-09 16:15 Peter T. Breuer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200109091746.MAA02088@ccure.karaya.com \
--to=jdike@karaya.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shiva@sasken.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox