[P4-discuss] headers syntax

ori marcovitch marcovitch.ori at gmail.com
Thu May 12 16:43:25 EDT 2016

I'm a little bit confused about the header declaration syntax,
I saw 2 versions for defining fields size:

*bit<3> pcp; *
*bit cfi;  *

*bit<12> vid; *
*pcp : 3;  cfi : 1; vid : 12;*

For what I saw in the specifications i understand the first is the newer
syntax (although it's less comfortable...). Is this true? and how do I
define to my p4-compiler which syntax to use?

Thanks in advance'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-discuss_lists.p4.org/attachments/20160512/2b794c99/attachment-0002.html>

More information about the P4-discuss mailing list