[Click] Bypassing the Linux stack while running click (k level)

Eddie Kohler kohler at cs.ucla.edu
Mon Mar 21 15:30:38 EST 2005


Hi IM,

On Mar 15, 2005, at 3:24 PM, Indian Mogul wrote:

> Hi,
>    I am running click at the kernel level and I want
> to do the following:
> 1. Capture packets directly from user-level sockets
> before the packets traverse the Linux TCP/IP stack. I
> should also have the freedom to hand the packet to he
> TCP/IP stack, if I decide not to process it.
> Does FromHost() /FromSocket has the capability to do
> this?

No.  This doesn't really make sense, actually.  Before info traverses 
the TCP/IP stack there are no packets.  (Unless you're using raw 
sockets.)

> 2. When the packets come on the network interfaces, I
> want to directly hand it over to the user level
> socket, bypassing the Linux TCP/IP stack. How do I do
> this? I know that I can hand over the packet to the
> Linux stack using ToHost(). But, I am more concerned
> in directly memory mapping the payload to the user
> socket.

Try ToHostSniffers.

Eddie



More information about the click mailing list