i m writing a module for linux kernel & it try to steal the packet & its related sk_buff. to do so i want to use struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t gfp_mask)
& then pass the return type to the kernel as packet is dropped.
so when kernel gets the info about packet drop it try to free the sk_buff. here my question comes will it affect my newly copied skb & its pointed data of the packet? or now i can play with my new sk_buff?
or is it possible to use skb_clone() & use the packet data part without deleting the referenced data by old sk_buff because it will reduse copying cost of the packet.