lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ