lkml.org 
[lkml]   [2005]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Sending IP datagrams
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 <greearb@candelatech.com>
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [from the cache]
©2003-2011 Jasper Spaans