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

Method NextDecoder

decode.go:60–60  ·  view source on GitHub ↗

NextDecoder should be called by a decoder when they're done decoding a packet layer but not done with decoding the entire packet. The next decoder will be called to decode the last AddLayer's LayerPayload. Because of this, NextDecoder must only be called once all other PacketBuilder calls have been

(next Decoder)

Source from the content-addressed store, hash-verified

58 // PacketBuilder calls have been made. Set*Layer and AddLayer calls after
59 // NextDecoder calls will behave incorrectly.
60 NextDecoder(next Decoder) error
61 // DumpPacketData is used solely for decoding. If you come across an error
62 // you need to diagnose while processing a packet, call this and your packet's
63 // data will be dumped to stderr so you can create a test. This should never

Callers 15

decodeModbusTCPFunction · 0.65
decodeDHCPv6Function · 0.65
decodeDHCPv4Function · 0.65
decodeRMCPFunction · 0.65
decodeLoopbackFunction · 0.65
decodeEthernetFunction · 0.65
decodeFDDIFunction · 0.65
decodeVXLANFunction · 0.65
decodingLayerDecoderFunction · 0.65
decodeLinuxSLLFunction · 0.65
decodeLCMFunction · 0.65
decodeIPSecAHFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected