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

Method SetTruncated

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

SetTruncated should be called if during decoding you notice that a packet is shorter than internal layer variables (HeaderLength, or the like) say it should be. It sets packet.Metadata().Truncated.

()

Source from the content-addressed store, hash-verified

16 // is shorter than internal layer variables (HeaderLength, or the like) say it
17 // should be. It sets packet.Metadata().Truncated.
18 SetTruncated()
19}
20
21type nilDecodeFeedback struct{}

Callers 15

DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65
DecodeFromBytesMethod · 0.65

Implementers 3

packetpacket.go

Calls

no outgoing calls

Tested by

no test coverage detected