lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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