TCP's response to NF_STOLEN
Hi,
My netfilter NF_IP_OUTPUT_HOOK function matches a TCP connection and returns NF_STOLEN now and then when certain conditions are satisfied.
I'm wondering how the local TCP code responses. Specifically, I was wondering whether this can cause sk_buff leak or anything. I known after receiving enough dup-ACK's, TCP will retransmit? How is the stolen packet reserved before that? Will it be the exactly the one retransmitted (I didn't do any kfree_skb(), shall I do it?)? Or will TCP re-alloc a skb header in retransmitting, leaving the stolen one floating in the memory?
Thank you,
Wei
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
I checked the (*pskb)->users and the value is 1 for each stolen packet. So I guess the answer to whether to kfree_skb() the stolen packet is no.
--- Weiguang Shi <[email protected]> wrote: > Hi,
Quoted 6 lines
My netfilter
NF_IP_OUTPUT_HOOKfunction matches a TCP
connection and returnsNF_STOLENnow and then when certain conditions are satisfied.
...
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca