[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <f36b08ee0710221303y5a846a27v1ebdc919db0f00ac@mail.gmail.com>
Date: Mon, 22 Oct 2007 22:03:47 +0200
From: "Yakov Lerner" <iler.ml@...il.com>
To: netdev@...r.kernel.org
Subject: attach additional value to skb
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
-
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