Re: attach additional value to skb

2007-10-22 Thread Muli Ben-Yehuda
On Mon, Oct 22, 2007 at 10:03:47PM +0200, Yakov Lerner wrote: > I want to add my custom destructor to the skb, the function pointer > to be called at skb destruction time. Will the following work: if I > push address of my_destructor to the > sk-buff->destructor field, and then when my_destructor

Re: attach additional value to skb

2007-10-22 Thread Wenhua Zhao
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_s

attach additional value to skb

2007-10-22 Thread Yakov Lerner
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 ? 2. I want to add my custom destructor to the skb, the function pointer to be called at skb destruction time.