Short answer no,
Long answer yes but..
If you change the body of an sk_buff you are passed it may be shared
and you need to do
skb2=skb_unshare(skb, GFP_ATOMIC);
if(skb2==NULL)
{
kfree(skb);
return -1; /* or whatever */
}
/* Now scribble */
skb_unshare is a copy on write for multiple users. So 99.99% of the time it
actually just returns skb.
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/