MCPcopy Index your code
hub / github.com/celzero/firestack / DumpPacket

Method DumpPacket

intra/netstack/snooper.go:111–132  ·  view source on GitHub ↗

DumpPacket logs a packet, depending on configuration, to stderr and/or a pcap file. ts is an optional timestamp for the packet.

(dir Direction, protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

DeliverNetworkPacketMethod · 0.95
DeliverLinkPacketMethod · 0.95
WritePacketsMethod · 0.95

Calls 4

MarshalBinaryMethod · 0.95
LogPacketFunction · 0.85
WriteMethod · 0.65
LoadMethod · 0.45

Tested by

no test coverage detected