NETFILTER Hook Hack: Interesting Issue

From: Radivoje Todorovic (radivojet@jaspur.com)
Date: Mon Oct 22 2001 - 10:52:00 EST


Hello,

Assume "int bla(struct sk_buff *skb)" is called from one of the five
netfilter hooks. And say,once you have the packet in your callback, you want
to create some dummy packet and send it along with original skb. How would
you do this?

Actually one solution would be to export symbol "ip_finish_output2" and then
use it for extra packet in the module. Then the return NF_ACCEPT would send
original skb out.

But how to do this without patching the kernel???

Rade

-
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/



This archive was generated by hypermail 2b29 : Tue Oct 23 2001 - 21:00:31 EST