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