NETFILTER Hook Hack: Interesting Issue

Radivoje Todorovic (radivojet@jaspur.com)
Mon, 22 Oct 2001 10:52:00 -0500


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/