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

Method ErrorLayer

packet.go:92–92  ·  view source on GitHub ↗

ErrorLayer is particularly useful, since it returns nil if the packet was fully decoded successfully, and non-nil if an error was encountered in decoding and the packet was only partially decoded. Thus, its output can be used to determine if the entire packet was able to be decoded.

()

Source from the content-addressed store, hash-verified

90 // in decoding and the packet was only partially decoded. Thus, its output
91 // can be used to determine if the entire packet was able to be decoded.
92 ErrorLayer() ErrorLayer
93
94 //// Functions for accessing data specific to the packet:
95 //// ------------------------------------------------------------------

Callers 15

gentestDefragFunction · 0.95
TestPacketDot11CtrlCTSFunction · 0.95
TestPacketDot11CtrlAckFunction · 0.95
TestPacketDot11DataARPFunction · 0.95
TestPacketDot11DataIPFunction · 0.95
TestPacketP6196Function · 0.95
TestPacketDot11HTControlFunction · 0.95
TestPacketIPSecAHTunnelFunction · 0.95

Calls

no outgoing calls

Tested by 15

gentestDefragFunction · 0.76
TestPacketDot11CtrlCTSFunction · 0.76
TestPacketDot11CtrlAckFunction · 0.76
TestPacketDot11DataARPFunction · 0.76
TestPacketDot11DataIPFunction · 0.76
TestPacketP6196Function · 0.76
TestPacketDot11HTControlFunction · 0.76
TestPacketIPSecAHTunnelFunction · 0.76