Is there any way to inject a newly created packet based on the captured packet inside a netfilter hook call back function?
My Goal is to capture a packet change compress its tcp payload and send it. i read ipcomp.c and i used its source. when i change skb size (like len) and tail pointer kernel hangs. maybe the way to do is to create a new packet based on captured packet and ask kernel to send it. I just don't know how to ask kernel to send a newly created packet?