P4 (programming language): Difference between revisions

Content deleted Content added
clean up, replaced: licenced → licensed using AWB
Line 39:
===Headers===
 
Header definitions describe packet formats and provide names for the fields within the packet. The language allows customized header names and fields of arbitrary length, although many header definitions use widely-known protocol names and fields widths. For example, an 802.3 ethernet header definition might be called “ethernet” and consist of the a 48-bit field named “src”“dest” followed by a 48-bit “dest”“src” field, followed by a 16-bit “type” field. The names in a header definition are used later in the P4 program to reference these fields.
 
===Parsers===