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

Method String

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

Functions for outputting the packet as a human-readable string: ------------------------------------------------------------------ String returns a human-readable string representation of the packet. It uses LayerString on each layer to output the layer.

()

Source from the content-addressed store, hash-verified

59 // String returns a human-readable string representation of the packet.
60 // It uses LayerString on each layer to output the layer.
61 String() string
62 // Dump returns a verbose human-readable string representation of the packet,
63 // including a hex dump of all layers. It uses LayerDump on each layer to
64 // output the layer.

Callers 15

BenchmarkPacketStringFunction · 0.95
LayerDumpFunction · 0.65
layerStringFunction · 0.65
baseLayerStringFunction · 0.65
layerGoStringFunction · 0.65
LayerGoStringFunction · 0.65
packetStringMethod · 0.65
packetDumpMethod · 0.65
SerializePacketFunction · 0.65
pfring_test.goFile · 0.65
StringMethod · 0.65

Calls

no outgoing calls

Tested by 13

BenchmarkPacketStringFunction · 0.76
TestDefragPing1Function · 0.52
TestDefragPing1and2Function · 0.52
TestPacketICMPv6Function · 0.52
TestRADIUSCodeFunction · 0.52
TestRADIUSAttributeTypeFunction · 0.52
TestDNSRRAFunction · 0.52
TestDNSAAAAFunction · 0.52