All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bryan Duff <bduff@ecessa.com>
To: netfilter-devel@vger.kernel.org
Subject: Packet cloning
Date: Fri, 16 Oct 2009 11:36:57 -0500	[thread overview]
Message-ID: <4AD8A129.8080606@ecessa.com> (raw)

Is it possible to have a CLONE target?

Where matching packets will be cloned and 2 packets will emerge and
continue traversing the chain?

Is it as simple as:
struct sk_buff *skb_new = skb_clone(skb, GFP_ATOMIC);
//and then change the prev/next pointers of the sk_buff's appropriately
to add them to the list
skb_new->next = skb->next;
skb_new->prev= skb;
skb->next = skb_new;
//and now my packet will be traversing the same chain as the original
packet.

I'm sure I'm missing something else that I have to do.

Thanks.

-Bryan

             reply	other threads:[~2009-10-16 17:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-16 16:36 Bryan Duff [this message]
2009-10-16 17:55 ` Packet cloning Jan Engelhardt
  -- strict thread matches above, loose matches on Subject: below --
2015-05-28 11:45 Packet Cloning Padam Jeet Singh
2015-05-28 14:52 ` Stephen Hemminger
2015-05-28 15:10   ` Matt Laswell
2015-05-28 15:38     ` Kyle Larose
2015-05-28 16:06       ` Matt Laswell
2015-05-28 16:13         ` Marc Sune
2015-05-29  8:34           ` Padam Jeet Singh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AD8A129.8080606@ecessa.com \
    --to=bduff@ecessa.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.