On 10/22/07, Yakov Lerner <[EMAIL PROTECTED]> wrote: > 1. How can I attach my 32-bit value to the skb in the > PRE_ROUTNIG hook such that FORWARD and POST_ROUTING > hooks can later access this value from the skb ? > > Can I use sk_buff->cb for that ? In IP layer cb is used by IP as structure inet_skb_param. It is written by ip_rcv_options() (in function ip_rcv_finish()) between PRE_ROUTING and FORWARD/POST_ROUTING.
In my opinion, cb is only used when one exclusively owns the skb. Regards, Wenhua - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html