how to replace a skb in NF_IP_LOCAL_OUT hook
Quoted 1 line
i want to replace the skb with my own, and in my skb i will change the
data
Quoted 7 lines
in it.
How to do it?
what i do as below:
cp = skb_copy_expand(*skb, skb_headroom(*skb)+12,
skb_tailroom(*skb),
GFP_ATOMIC);
Quoted 6 lines
//change the
skb->datahereskb_set_owner_w(cp, (*skb)->sk);
*skb = cp;
returnNF_ACCEPT;but, it can't work.