Visit the LQ Articles and Editorials section
Go Back > Blogs > yaplej
User Name


Just some entries about what I have learned in my effort to write an open source network accelerator.

Intercepting IP packets using Netfilter hooks

Posted 04-22-2010 at 11:26 PM by yaplej
Updated 04-22-2010 at 11:33 PM by yaplej

Netfilter hooks are very useful when you wish to intercept, and modify IP packets inside a kernel module.

One great thing about using Netfilter hooks over say dev_add_pack() is that the bad L2 frames, and bad IP packets get filtered out earlier in the network stack so you only deal with good packets.

Now the whole point of the Netfilter hook is to customize what the kernel does with the packets received by the system so here is an example hook function. It simply...
Views 1786 Comments 1 yaplej is offline


All times are GMT -5. The time now is 11:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration