memory leaks when stealing packets from netfilter ??
Hello,
I wrote a LKM that intercepts packets as they are coming into Netfilter (NF_IP_PRE_ROUTING). If the packets are of interest, I modify the skb and send it immediately back out using dev_queue_xmit() and then return NF_STOLEN. It should be that simple, right? BUT for some reason, I am getting memory leaks - dev_queue_xmit() does not kfree the skb that I pass it.
Any ideas why the skb is not being freed ?
Thanks in advance for any advice.
Tom