Glossary
The terms this book uses for the parts of a Protocol Description and of the Dissector generated from it, written with a capital letter in the text, such as Field or Case. Under Avoid, each entry lists other names you may know the same idea by; this book does not use them.
Array
A Field whose layout is read several times in a row: as many times as a count gives, or until the Message ends. Avoid: List, sequence, repeated field, vector
Bitfield
A Field of an unsigned integer type whose bits are split, most significant first, into Sub-Fields and Padding, every bit accounted for. Avoid: Flags, bitmask, packed field
Byte Order
Whether a multi-byte value is read most significant byte first (big) or last (little). A Field takes the nearest one set on itself, its enclosing Structures or the Protocol Description; a Type keeps its own, whatever Structure uses it. Avoid: Endianness, endian
Case
One layout a Switch can read, a Type or a group of Fields, picked by a set of Subject values or, for the default Case, when no other matches. It adds no level to the tree or to Filter Names. Avoid: Branch, arm, variant, alternative, message type
Conditional Field
A Field read only when its condition, an Expression, is not zero; otherwise it reads nothing and adds nothing to the tree. Avoid: Optional field, guarded field
Conditional Scope
A Conditional Field or a Case: the Fields inside it have a value only when it was read, so only Expressions inside it can read them. Avoid: Conditional block, branch
Depth
How many Fields enclose a Field in the tree, through every Type it is reached by; a Case adds none. A top-level Field has depth 0. It is the number of names in its Filter Name, less the protocol’s and its own. Avoid: Nesting level, level
Diagnostic
An error or a warning that Wirdigen reports about a Protocol Description, identified by a stable name and pointing at where in the description it applies. An error stops generation; a warning does not. Avoid: Lint, issue, validation message
Dissector
The Wireshark Lua plugin generated from a Protocol Description. The dissectors Wireshark already has, such as the one a Handoff passes bytes to, are written in lowercase: one of them can be a Dissector, but most are not. Avoid: Plugin, LUA file
Element
One reading of an Array’s layout, shown in the tree on its own and numbered from 0, but sharing the Array’s name and Filter Names. Avoid: Item, entry, record
Enum
A named table of labels for integer values and value ranges, defined once in a Protocol Description and shared by every Field whose values it names. Avoid: Value string, lookup table, dictionary
Expected Values
The values a Field or Sub-Field should hold. A Message holding another value gets a warning in Wireshark but is still read to the end; it is not Malformed. Avoid: Constraint, assertion, validation, magic value
Expression
A formula in a Protocol Description that computes a size, a count, an amount of Padding, a condition, the Subject of a Switch or the length Framing gives a Message, from constants and Fields read earlier. Avoid: Formula, rule, script
Field
One named element of a Protocol Description’s payload layout: a single value, or a group of Fields, with its display settings. Avoid: Data chunk, data, attribute
Field Path
The dotted chain of Field names by which an Expression or an Info Template names a Field. In an Expression it names a Field read earlier, looked up from the nearest enclosing Structure outward; in an Info Template it is looked up from the top-level Structure. Avoid: Reference, variable, identifier
Filter Name
The name a Wireshark display filter uses for a Field: the protocol’s name, then the Field names from the top-level Structure down to it, never through a Type’s name or a Case. Saved filters depend on it, so changing it breaks them. Avoid: Abbreviation, abbrev, field ID, filter path
Framing
How a Dissector finds where each Message starts and ends in a TCP stream, so one Message split across segments, or several in one segment, are dissected correctly. Avoid: Reassembly, segmentation, PDU splitting
Handoff
Passing the bytes of a Field to a dissector Wireshark already has, named in the Protocol Description; its layer is shown right after the Field. Avoid: Sub-dissector, delegation, chaining, payload dissector
Hidden Field
A Field read but left out of the protocol tree; it can still be filtered and used in Expressions. Avoid: Invisible field, private field, internal field
Info Template
The text a Protocol Description gives for Wireshark’s Info column, with Field Paths in braces that show the Fields of each Message; without one, the column shows the label of the outermost Switch’s Subject value. Avoid: Info format, summary line, info string
Malformed
What a Dissector reports when a Message cannot be read as its Protocol Description says, because a Field does not fit (truncated), an Expression’s value cannot be used, or an Element reads no bytes; it shows what it read so far and stops, never failing with a Lua error. Avoid: Invalid packet, corrupt, parse error
Message
One unit of traffic a Dissector reads with the top-level Structure: a packet’s payload, or one piece cut out by Framing. Avoid: PDU, frame, packet
Padding
Unnamed space that is skipped: bytes between the entries of a Structure, or bits between the Sub-Fields of a Bitfield. It cannot be filtered or referenced. Avoid: Gap, filler, reserved bytes, unused bits, alignment
Protocol Description
The document a user writes to describe one protocol: its identity, its Registration, and the layout of its payload. Avoid: Package, packet description, message description, dissector description
Registration
How a Dissector attaches to traffic in Wireshark: the ports it claims by default, and its availability in Decode As. Avoid: Connection, network information, binding
Structure
An ordered list of entries read one after another, each a Field or Padding: the top-level layout, an inline group of Fields, a Type’s body or a Case. Avoid: Record, block, section
Sub-Field
A Field of a Bitfield, a few bits wide: an unsigned integer, or a boolean when it is one bit wide and given no labels for values, unit or display. Avoid: Bit field, flag, bit
Subject
The Expression whose value picks a Switch’s Case, computed once before any Case is read. Avoid: Selector, discriminant, tag, key
Switch
A Field that reads one Case among several, picked by the value of its Subject. Avoid: Union, variant, choice
Type
A named, reusable group of Fields, defined once in a Protocol Description and used wherever a layout is needed, including as a Case of a Switch. Avoid: Struct, message, template
Value Mapping
What a Field shows beside or instead of its raw value: labels for values and value ranges, given inline or by naming an Enum, labels for true and false, or a unit. Avoid: Value labels, value string, lookup