Skip to main content

Module protocol

Module protocol 

Source
Expand description

Binary Protocol with CRC32 Checksums for Ghost-Link Discovery

This module implements a fixed-width binary protocol using:

  • Fixed-size fields for zero-copy parsing
  • CRC32 checksums for frame integrity (hardware-accelerated via crc32fast)
  • Sequence numbers and versioning for ordering
  • Zero-copy encoding with thread-local buffers

Structs§

DiscoveryFrame
Discovery frame with binary encoding and CRC32
FrameHeader
Frame header structure (fixed-width, 8 bytes)
NodeResources
Node resources structure for discovery frames

Enums§

FrameKind
Frame kind enumeration

Constants§

GHOSTLINK_ETHERTYPE
Ghost-Link EtherType (0x88B5)
MAX_FRAME_SIZE
Maximum frame size (header + max payload)
MAX_PAYLOAD_SIZE
Maximum payload size for discovery frames
PROTOCOL_VERSION
Protocol version

Functions§

crc32
Compute CRC32 checksum using hardware-accelerated crc32fast