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

Indian Mogul indian_mogul at yahoo.com
Tue Mar 15 18:24:08 EST 2005


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?   

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.

Do I need to look into the netfilter hooks? 

Regards,
IM


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


More information about the click mailing list