lkml.org 
[lkml]   [2001]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: IP layer bug?
    Hello!

    On Sat, Mar 31, 2001 at 07:32:48PM +0400, kuznet@ms2.inr.ac.ru wrote:

    > General rule is minimization redundant clearings of the area.
    > > Why not document it somewhere, so that others will not fall into the same trap?
    > Indeed. 8) You got the experience, which you expect to be useful
    > for people, it is time to prepare some note recording this. 8)
    I cannot think of something better that piece below, so I think
    you may want to change it, anyway ;)


    --- include/linux/skbuff.h.orig Mon Apr 2 13:13:46 2001
    +++ include/linux/skbuff.h Mon Apr 2 13:24:18 2001
    @@ -102,7 +102,10 @@
    * This is the control buffer. It is free to use for every
    * layer. Please put your private variables there. If you
    * want to keep them across layers you have to do a skb_clone()
    - * first. This is owned by whoever has the skb queued ATM.
    + * first (which is a must, anyway). This is owned by whoever
    + * has the skb queued ATM.
    + * Driver writers: notice you should zero cb before netif_rx()
    + * if you used it.
    */
    char cb[48];

    Bye,
    Oleg
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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