[P4-dev] [P4_16] [copy_to_cpu] how to drop packet payload only

Hu Dingyuan h-dy at outlook.com
Mon Jun 12 05:33:14 EDT 2017

I want to implement copy_to_cpu function. (like OpenFlow Packet-IN)
When I decided to send a packet to control-plane, I need to encapsulate the packet with new ethernet/ip/udp header.
How can I only send packet header and don’t send the origin payload.

Another question, can I buffer the packet and wait for control-plane?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170612/d51fb951/attachment-0002.html>

More information about the P4-dev mailing list