DecodingLayerParser parses a given set of layer types. See DecodeLayers for more information on how DecodingLayerParser should be used.
| 180 | // DecodingLayerParser parses a given set of layer types. See DecodeLayers for |
| 181 | // more information on how DecodingLayerParser should be used. |
| 182 | type DecodingLayerParser struct { |
| 183 | // DecodingLayerParserOptions is the set of options available to the |
| 184 | // user to define the parser's behavior. |
| 185 | DecodingLayerParserOptions |
| 186 | dlc DecodingLayerContainer |
| 187 | first LayerType |
| 188 | df DecodeFeedback |
| 189 | |
| 190 | decodeFunc DecodingLayerFunc |
| 191 | |
| 192 | // Truncated is set when a decode layer detects that the packet has been |
| 193 | // truncated. |
| 194 | Truncated bool |
| 195 | } |
| 196 | |
| 197 | // AddDecodingLayer adds a decoding layer to the parser. This adds support for |
| 198 | // the decoding layer's CanDecode layers to the parser... should they be |
nothing calls this directly
no outgoing calls
no test coverage detected