netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* attach additional value to skb
@ 2007-10-22 20:03 Yakov Lerner
  2007-10-22 21:18 ` Wenhua Zhao
  2007-10-23  5:42 ` Muli Ben-Yehuda
  0 siblings, 2 replies; 3+ messages in thread
From: Yakov Lerner @ 2007-10-22 20:03 UTC (permalink / raw)
  To: netdev

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. Will the following
work:  if I push  address of my_destructor to the
sk-buff->destructor field,  and then when my_destructor
is called, I call the (saved)  old value of  sk-buff->destructor ?
Will this work ?

Yakov

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-23  5:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-22 20:03 attach additional value to skb Yakov Lerner
2007-10-22 21:18 ` Wenhua Zhao
2007-10-23  5:42 ` Muli Ben-Yehuda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).