[P4-dev] Packet + Header Serialization
iped at seas.upenn.edu
Thu Oct 4 16:55:42 EDT 2018
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev