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

Method TransportLayer

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

TransportLayer returns the first transport layer in the packet

()

Source from the content-addressed store, hash-verified

83 NetworkLayer() NetworkLayer
84 // TransportLayer returns the first transport layer in the packet
85 TransportLayer() TransportLayer
86 // ApplicationLayer returns the first application layer in the packet
87 ApplicationLayer() ApplicationLayer
88 // ErrorLayer is particularly useful, since it returns nil if the packet

Callers 6

TestDecodeUDPSFlowFunction · 0.95
TestUDPPacketDNSFunction · 0.95
mainFunction · 0.65
mainFunction · 0.65

Calls

no outgoing calls

Tested by 4

TestDecodeUDPSFlowFunction · 0.76
TestUDPPacketDNSFunction · 0.76