PDA

View Full Version : Sending raw packets from the kernel



yossig
May 7th, 2009, 04:21 PM
Hi all,
I'm developing a kernel module that intercepts packets (using netfilter)
sometimes the module needs to send a raw packet in response to the
intercepted packet.
The problem is netfilter functions sometimes get called from interrupt
context, from which I can't send packets.
So I used tasklets to schedule a packet send.
to send a packet the tasklet uses sock_sendmsg function.
However this causes kernel panic with probability..

does anyone know how to do this?

yossig
May 11th, 2009, 11:29 AM
anyone?:(

PmDematagoda
May 11th, 2009, 11:43 AM
anyone?:(

The issue is that you might be asking the wrong place, I don't think we have many kernel hackers over here. Perhaps you could give the Linux Kernel Mailing Lists or even Google a try?

Edit:- You could also try asking around the Netfilter (http://www.netfilter.org/contact.html#coreteam) mailing lists.