[lkml]   [1998]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: TCP bug?
    > skb_unshare is a copy on write for multiple users. So 99.99% of the time it
    > actually just returns skb.

    OK. Because it can happen that I need to copy the skb for another
    reason (too little space for additional headers) I can just do
    something like

    if (skb_cloned(skb) || toosmall(skb)) {
    skn = skb_copy(skb, GFP_KERNEL);
    /* etc */

    and this would be safe? Nice to know. :-)


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:45    [W:0.018 / U:21.600 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site