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

Method Layers

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

Functions for accessing arbitrary packet layers: ------------------------------------------------------------------ Layers returns all layers in this packet, computing them as necessary

()

Source from the content-addressed store, hash-verified

68 //// ------------------------------------------------------------------
69 // Layers returns all layers in this packet, computing them as necessary
70 Layers() []Layer
71 // Layer returns the first layer in this packet of the given type, or nil
72 Layer(LayerType) Layer
73 // LayerClass returns the first layer in this packet of the given class,

Callers 12

TestInformationElementFunction · 0.95
FuzzLayerFunction · 0.95
getSerializeLayersFunction · 0.95
TestDecodeVLANPacketFunction · 0.95
TestDecodeSCTPPacketsFunction · 0.95
TestPacketMPLSFunction · 0.95
RunFunction · 0.65
benchmarkPacketDecodeFunction · 0.65
checkLayersFunction · 0.65
SerializeToMethod · 0.65

Calls

no outgoing calls

Tested by 8

TestInformationElementFunction · 0.76
getSerializeLayersFunction · 0.76
TestDecodeVLANPacketFunction · 0.76
TestDecodeSCTPPacketsFunction · 0.76
TestPacketMPLSFunction · 0.76
checkLayersFunction · 0.52