Josef E. Galea wrote:
Scott Feldman wrote:


On Mar 7, 2005, at 3:48 PM, Josef E. Galea wrote:

Hi,

Is there any way, other than socket buffers, to send IP datagrams from a kernel module? If yes, can you please point me to some good tutorial or sample code



See net/core/pktgen.c for an example.

-scott

AFAIK that module uses socket buffers (struct sk_buff) to send the packets. I was asking whether there was another way to send the IP datagrams.

The sk_buf is the thing you send to network drivers, it doesn't get any more basic unless you are hacking a particular driver and DMA'ing memory or something like that...

Maybe you should explain what you are really trying to do?

Ben

--
Ben Greear <[EMAIL PROTECTED]>
Candela Technologies Inc  http://www.candelatech.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to