[P4-dev] Packet + Header Serialization

Isaac Pedisich iped at seas.upenn.edu
Thu Oct 4 16:55:42 EDT 2018

Dear All,

As referenced in a now-closed PR on the behavioral model repo (
https://github.com/p4lang/behavioral-model/pull/666), we require a way to
obtain the serialized form of a packet along with its (valid) headers from
within an extern.

Either obtaining a copy of the packet as it entered the system before
parsing, or using a reference to the pipeline's deparser will suit our
needs. However, neither the original packet nor the deparser seem to be
accessible from inside of an extern at this time.

Is there an accepted way of accessing a packet's headers and body as a
single serialized array of bytes? If not, where is the most appropriate
location to add such functionality?

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20181004/d0532fd5/attachment.html>

More information about the P4-dev mailing list