[P4-dev] A variable in the header

Roshan sedar at oasis.uclouvain.be
Tue Nov 21 10:03:37 EST 2017


Hi,

I am trying the following to keep a variable in packet header per 
switch. I just want to know which way is the best way to do this. This 
could grow the header largely as it appears.


header_type {

       fields {

             switch_1: 8;

              switch_2: 8;

             ............

              switch_n: 8;

     }

}


Thanks!


Regards,

Roshan.





More information about the P4-dev mailing list