From: Casey Carter <Casey@Carter.net>
To: Vasu <vasu@ee.iitb.ac.in>
Cc: linux-net <linux-net@vger.kernel.org>
Subject: Re: injecting packets
Date: Tue, 16 Apr 2002 17:27:50 -0500 [thread overview]
Message-ID: <3CBCA566.4000504@Carter.net> (raw)
In-Reply-To: Pine.LNX.4.30.0204161203210.15280-100000@brahmi.ee.iitb.ac.in
It sounds like you want the Universal Tunnel/Tap driver, that lives in
drivers/net/tun.c
Vasu wrote:
>Hi.
>
>I am trying to write a module that takes Ethernet packets from the user
>domain, and injects it into the proper place ( which I think is the
>sk_buffers ), so that to the IP, TCP layer, the packets look as if coming
>from the Ethernet device. Can someone please suggest me which files to
>look into, and which structs to handle, for getting this done. Also, I
>want to do the reverse task, i.e. take some particular packets ( say which
>come from a specific port ) from sk_buffers and send it to user space.
>
>Please assume that this silly looking Rx/Tx has some importance :)
>
>Regards.
>
>Vasu.
>III yr EE student.
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-net" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2002-04-16 22:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-15 23:36 kernel module to generate UDP & TCP traffic? Ben Greear
2002-04-15 23:43 ` David S. Miller
2002-04-16 0:25 ` Ben Greear
2002-04-15 23:43 ` Amit Kucheria
2002-04-15 23:52 ` Ben Greear
2002-04-16 6:39 ` injecting packets Vasu
2002-04-16 8:15 ` Avniwb
2002-04-16 22:27 ` Casey Carter [this message]
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=3CBCA566.4000504@Carter.net \
--to=casey@carter.net \
--cc=linux-net@vger.kernel.org \
--cc=vasu@ee.iitb.ac.in \
/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;
as well as URLs for NNTP newsgroup(s).