MCPcopy Index your code
hub / github.com/google/gopacket / SetDecodingLayerContainer

Method SetDecodingLayerContainer

parser.go:238–241  ·  view source on GitHub ↗

SetDecodingLayerContainer specifies container with decoders. This call replaces all decoders already registered in given instance of DecodingLayerParser.

(dlc DecodingLayerContainer)

Source from the content-addressed store, hash-verified

236// call replaces all decoders already registered in given instance of
237// DecodingLayerParser.
238func (l *DecodingLayerParser) SetDecodingLayerContainer(dlc DecodingLayerContainer) {
239 l.dlc = dlc
240 l.decodeFunc = l.dlc.LayersDecoder(l.first, l.df)
241}
242
243// DecodeLayers decodes as many layers as possible from the given data. It
244// initially treats the data as layer type 'typ', then uses NextLayerType on

Callers 3

AddDecodingLayerMethod · 0.95
NewDecodingLayerParserFunction · 0.95

Calls 1

LayersDecoderMethod · 0.65

Tested by 1