Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.24 KB

design.md

File metadata and controls

30 lines (21 loc) · 1.24 KB

p4srv6 design

P4 code

P4 header and metadata naming schema

Header and metadata naming were decided considering below reference codes available in public.

  • use snake_case (and not CamelCase)
    • e.g. ipv4_h, vlan_tag_h
  • end with _h for headers and _t for types
    • e.g. header ethernet_h, typedef bit<48> mac_addr_t;
  • use all capital for costants
    • e.g. const bit<16> ETHERTYPE_IPV4 = 0x0800;

References when considering P4 naming schema.