Expand description
SRT control packet dispatch — draft-sharabayko-srt-01 §3.2, Figure 4,
Table 1.
word0 1| Control Type (15) | Subtype (16) |
word1 Type-specific Information (32)
word2 Timestamp (32)
word3 Destination Socket ID (32)
rest CIF (variable, per Control Type)Subtype is 0x0 for every Control Type in Table 1 except
User-Defined Type (0x7FFF), where it carries SRT_CMD_KMREQ /
SRT_CMD_KMRSP (Table 5) when the CIF is a Key Material message (§3.2.2).
Subtype and the Type-specific Information word (where a given packet
type does not use it) are validated as reserved-must-be-zero and are not
stored in the typed per-type structs — see the crate root’s reserved-bit
policy.
Structs§
- User
Defined Packet - A Control Type = User-Defined (
0x7FFF) packet, or a Control Type not defined by Table 1. The CIF is genuinely opaque here — the only defined use is the Key Material message (§3.2.2) viaSubtypeSRT_CMD_KMREQ/SRT_CMD_KMRSP— seeSelf::as_key_material.
Enums§
- Control
Packet - An SRT control packet (
draft-sharabayko-srt-01§3.2). - Control
Type - The
Control Typefield (draft-sharabayko-srt-01§3.2, Table 1) — 15 bits.