MCPcopy
hub / github.com/google/gopacket / RMCP

Struct RMCP

layers/rmcp.go:75–96  ·  view source on GitHub ↗

RMCP describes the format of an RMCP header, which forms a UDP payload. See section 3.2.2.2.

Source from the content-addressed store, hash-verified

73// RMCP describes the format of an RMCP header, which forms a UDP payload. See
74// section 3.2.2.2.
75type RMCP struct {
76 BaseLayer
77
78 // Version identifies the version of the RMCP header. 0x06 indicates RMCP
79 // v1.0; lower values are legacy, higher values are reserved.
80 Version uint8
81
82 // Sequence is the sequence number assicated with the message. Note that
83 // this rolls over to 0 after 254, not 255. Seq num 255 indicates the
84 // receiver must not send an ACK.
85 Sequence uint8
86
87 // Ack indicates whether this packet is an acknowledgement. If it is, the
88 // payload will be empty.
89 Ack bool
90
91 // Class idicates the structure of the payload. There are only 2^4 valid
92 // values, however there is no uint4 data type. N.B. the Ack bit has been
93 // split off into another field. The most significant 4 bits of this field
94 // will always be 0.
95 Class RMCPClass
96}
97
98// LayerType returns LayerTypeRMCP. It partially satisfies Layer and
99// SerializableLayer.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected