Packet cloning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux