decodeRMCP decodes the byte slice into an RMCP type, and sets the application layer to it.
(data []byte, p gopacket.PacketBuilder)
| 159 | // decodeRMCP decodes the byte slice into an RMCP type, and sets the application |
| 160 | // layer to it. |
| 161 | func decodeRMCP(data []byte, p gopacket.PacketBuilder) error { |
| 162 | rmcp := &RMCP{} |
| 163 | err := rmcp.DecodeFromBytes(data, p) |
| 164 | p.AddLayer(rmcp) |
| 165 | p.SetApplicationLayer(rmcp) |
| 166 | if err != nil { |
| 167 | return err |
| 168 | } |
| 169 | return p.NextDecoder(rmcp.NextLayerType()) |
| 170 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…