[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070327154749.GA31957@2ka.mipt.ru>
Date: Tue, 27 Mar 2007 19:47:49 +0400
From: Evgeniy Polyakov <johnpol@....mipt.ru>
To: Simba <simba@...nking.at>
Cc: netdev@...r.kernel.org
Subject: Re: Ethernet Frame Generation
On Tue, Mar 27, 2007 at 05:27:42PM +0200, Simba (simba@...nking.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
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists