P4 (programming language): Difference between revisions

Content deleted Content added
Note that the P4 Consortium is now just the P4 Project
Mcculley (talk | contribs)
Headers: Fix grammar.
Tags: Mobile edit Mobile web edit
Line 58:
 
===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 [[IEEE 802.3|802.3]] Ethernet header definition might be called “Ethernet” and consist of the a 48-bit field named “dest” followed by a 48-bit “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===