Playing with Network Stack

4 messages, 3 authors, 2012-03-14 · open the first message on its own page

Playing with Network Stack

From: james jones <hidden>
Date: 2012-03-13 20:50:10

Greetings,

I hoping someone here can help point me in the right direction. I had an
idea for project, but I lack some of the know how. I was wonder if it might
be possible to have a kernel module or an application that can inspect
and mangle a packet before it gets routed? I don't want to just sniff the
traffic. I want to be able to look at the packet and then hand it back to
the network stack for processing. If so is there some reading or example
code I could look at?


Thanks in advance,

-James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120313/67da51e3/attachment.html 

Playing with Network Stack

From: Jeff Haran <hidden>
Date: 2012-03-13 21:07:32


From: kernelnewbies-bounces+jharan=bytemobile.com@kernelnewbies.org [mailto:kernelnewbies-bounces+jharan=bytemobile.com at kernelnewbies.org] On Behalf Of james jones
Sent: Tuesday, March 13, 2012 1:50 PM
To: kernelnewbies at kernelnewbies.org
Subject: Playing with Network Stack

Greetings,

I hoping someone here can help point me in the right direction. I had an idea for project, but I lack some of the know how. I was wonder if it might be possible to have a kernel module or an application that can inspect and mangle a packet before it gets routed? I don't want to just sniff the traffic. I want to be able to look at the packet and then hand it back to the network stack for processing. If so is there some reading or example code I could look at?


Thanks in advance,

-James

You probably want to do a search on "netfilter hook".

Jeff Haran


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120313/97a0f6f4/attachment.html 

Playing with Network Stack

From: Sankalp Bagaria <hidden>
Date: 2012-03-14 04:42:45

You can try lipipq
http://linux.die.net/man/3/libipq

Regards,
Sankalp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120314/a05c9a62/attachment.html 

Playing with Network Stack

From: james jones <hidden>
Date: 2012-03-14 17:45:15

libipq will not give me what I want. I want this to be complete transparent
to the user space.

On Wed, Mar 14, 2012 at 12:42 AM, Sankalp Bagaria [off-list ref]wrote:
You can try lipipq
http://linux.die.net/man/3/libipq

Regards,
Sankalp.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120314/81de3baa/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help