[P4-dev] add and remove header of P4-14 in bmv2

Salvatore Signorello salvatore.signorello at uni.lu
Wed Jun 28 07:02:06 EDT 2017

apologies, in the previous I forgot to tell you that no header stacks 
are involved, I am only passing normal header instances to those 

Just, because I have seen a couple of related github issues.

On 06/28/2017 12:43 PM, Salvatore Signorello wrote:
> Hi all,
> before adding any code snippets to this thread, I would like to be 
> sure that the two primitive actions add_header and remove_header are 
> supported by the current bmv2. Are they?
> According to the nanolog, my header is added and deserialized 
> correctly at the output. However, when sniffing the output interface 
> the packet is identical to the input.
> Could please anyone confirm that the primitives work fine? If so, 
> could you please point me to some code containing the right sequence 
> of calls to use them?
> Back in time, I remember they were working fine with the 
> source_routing example proposed by Antonin in one of the old tutorials 
> on P4. Any changes since then?
> Best regards,
> Salvatore

Salvatore Signorello
PhD student of the SEDAN research group at SnT

Interdisciplinary Centre for Security, Reliability and Trust
University of Luxembourg

More information about the P4-dev mailing list