[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <178ddfde0710221418v435c9f45ie6d8cb9b7bebd288@mail.gmail.com>
Date: Mon, 22 Oct 2007 14:18:44 -0700
From: "Wenhua Zhao" <whzhao@...il.com>
To: netdev@...r.kernel.org
Subject: Re: attach additional value to skb
On 10/22/07, Yakov Lerner <iler.ml@...il.com> 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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists