From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: Simba <simba@lionking.at>
Cc: netdev@vger.kernel.org
Subject: Re: Ethernet Frame Generation
Date: Tue, 27 Mar 2007 19:47:49 +0400 [thread overview]
Message-ID: <20070327154749.GA31957@2ka.mipt.ru> (raw)
In-Reply-To: <460937EE.8050703@lionking.at>
On Tue, Mar 27, 2007 at 05:27:42PM +0200, Simba (simba@lionking.at) wrote:
> I am currently working on a new l2/l3 protocol (just for
> research reasons) and i would like to make a test implementation
> in the linux kernel.
>
> For this i need to modify the ethernet header and replace it
> with my header. The payload of this header holds the raw data, or
> an TCP segment, or an UDP datagram.
How will your hardware handle that new protocol?
Anyway, you need to setup skb and call driver's ->hard_start_xmit()
callback under tx lock with check if driver allows to transmit data.
Check net/pktgen.c -> pktgen_xmit() function.
The simplest way to receive a packet is about putting your code into
netif_receive_skb().
--
Evgeniy Polyakov
next prev parent reply other threads:[~2007-03-27 15:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-27 13:45 [PATCH net-2.6.22] [IPV6] FIB6RULE: Find source address during looking up route YOSHIFUJI Hideaki / 吉藤英明
2007-03-27 14:25 ` Thomas Graf
2007-03-27 15:27 ` Ethernet Frame Generation Simba
2007-03-27 15:47 ` Evgeniy Polyakov [this message]
2007-03-28 3:49 ` [PATCH net-2.6.22] [IPV6] FIB6RULE: Find source address during looking up route YOSHIFUJI Hideaki / 吉藤英明
2007-03-28 4:02 ` Noriaki TAKAMIYA
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=20070327154749.GA31957@2ka.mipt.ru \
--to=johnpol@2ka.mipt.ru \
--cc=netdev@vger.kernel.org \
--cc=simba@lionking.at \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.