[P4-dev] where to add_header?
antonin at barefootnetworks.com
Sat Sep 24 19:38:04 EDT 2016
Your header has to be part of the parse graph. From the parse graph, we
compute a topological sorting which determines in which order the headers
are emitted when the packet is deparsed.
There is one example on p4lang of a P4 program which adds a CPU header to
There are a few threads on this mailing list which talk about this in more
details. I would recommend looking at this one:
On Sat, Sep 24, 2016 at 4:22 PM, Yuliang Li <yuliangl at usc.edu> wrote:
> Hi all,
> I want to add a header to each packet. I see there is a add_header API.
> But how do I indicate where to add the header (e.g. after TCP header).
> P4-dev mailing list
> P4-dev at lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev