All of lore.kernel.org
 help / color / mirror / Atom feed
* Packet cloning
@ 2009-10-16 16:36 Bryan Duff
  2009-10-16 17:55 ` Jan Engelhardt
  0 siblings, 1 reply; 9+ messages in thread
From: Bryan Duff @ 2009-10-16 16:36 UTC (permalink / raw)
  To: netfilter-devel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Packet Cloning
@ 2015-05-28 11:45 Padam Jeet Singh
  2015-05-28 14:52 ` Stephen Hemminger
  0 siblings, 1 reply; 9+ messages in thread
From: Padam Jeet Singh @ 2015-05-28 11:45 UTC (permalink / raw)
  To: dev@dpdk.org

Hello,

Is there a function in DPDK to completely clone a pkt_mbuf including the segments? 

I am trying to build a packet mirroring application which sends packet out through two separate interfaces, but the packet payload needs to be altered before send.

Thanks,
Padam

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

end of thread, other threads:[~2015-05-29  8:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 16:36 Packet cloning Bryan Duff
2009-10-16 17:55 ` 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

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.