On Tue, Mar 27, 2007 at 05:27:42PM +0200, Simba ([EMAIL PROTECTED]) 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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html