PacketDiag — Protocol Header Diagrams
PacketDiag generates byte-accurate network protocol header diagrams. Fields are defined by bit position ranges and can carry color, rotation, and spanning attributes.
!!! tip "Syntax"
Use start-end: Label; to define a field. [rotate = 270] rotates short labels vertically. [colheight = N] makes a field span multiple rows.
UDP Header
The complete 64-bit User Datagram Protocol header with color-highlighted fields.
TCP Header
The full 224-bit TCP header including flags with rotated labels, window, checksum, and options.
EtherCAT Frame Header
An industrial EtherCAT Ethernet frame header layout — an example of field-bus protocol documentation.