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

Struct DecodeFailure

decode.go:122–126  ·  view source on GitHub ↗

DecodeFailure is a packet layer created if decoding of the packet data failed for some reason. It implements ErrorLayer. LayerContents will be the entire set of bytes that failed to parse, and Error will return the reason parsing failed.

Source from the content-addressed store, hash-verified

120// set of bytes that failed to parse, and Error will return the reason parsing
121// failed.
122type DecodeFailure struct {
123 data []byte
124 err error
125 stack []byte
126}
127
128// Error returns the error encountered during decoding.
129func (d *DecodeFailure) Error() error { return d.err }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected