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

Struct DecodingLayerParser

parser.go:182–195  ·  view source on GitHub ↗

DecodingLayerParser parses a given set of layer types. See DecodeLayers for more information on how DecodingLayerParser should be used.

Source from the content-addressed store, hash-verified

180// DecodingLayerParser parses a given set of layer types. See DecodeLayers for
181// more information on how DecodingLayerParser should be used.
182type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected