netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Reg: Replacing sk_buff in a NetFilter hook
@ 2010-04-16 10:37 Subhadeep Ghosh
  2010-04-16 10:48 ` Jan Engelhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Subhadeep Ghosh @ 2010-04-16 10:37 UTC (permalink / raw)
  To: netfilter

Hello People,

I have written a hook for the NetFilter bridge and it works absolutely
fine. However, now some of the requirements for the hook have changed
and now I wish to perform the following operations,

1. Create a new sk_buff.
2. Copy the contents of the sk_buff, which NetFilter had passed, to
the newly created sk_buff.
3. Either mark the original sk_buff as NF_STOLEN or NF_DROP.
4. Replace the newly created sk_buff with the original sk_buff in the
NetFilter queue.

The first and the second steps are no-brainers. However, I don't know
if I need to drop the original packet or mark it as stolen. And I
definitely don't know how to resolve the fourth point. It would be
great if anyone could point me in the right direction.

Thank you and regards,
Subhadeep Ghosh.

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

end of thread, other threads:[~2010-04-16 12:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 10:37 Reg: Replacing sk_buff in a NetFilter hook Subhadeep Ghosh
2010-04-16 10:48 ` Jan Engelhardt
2010-04-16 11:01   ` Subhadeep Ghosh
2010-04-16 12:12     ` Jan Engelhardt
2010-04-16 12:55       ` Subhadeep Ghosh

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).