MCPcopy
hub / github.com/dreadl0ck/netcap / StreamData

Struct StreamData

decoder/core/stream_data.go:30–42  ·  view source on GitHub ↗

StreamData is a payload fragment of data we received from a streamReader its contains the raw bytes as well an assembler context with timestamp information.

Source from the content-addressed store, hash-verified

28// StreamData is a payload fragment of data we received from a streamReader
29// its contains the raw bytes as well an assembler context with timestamp information.
30type StreamData struct {
31 // raw binary data
32 RawData []byte
33
34 // tcp specific fields
35 AssemblerContext reassembly.AssemblerContext
36 Dir reassembly.TCPFlowDirection
37
38 // udp specific fields
39 CaptureInformation gopacket.CaptureInfo
40 Net gopacket.Flow
41 Trans gopacket.Flow
42}
43
44// dataFragment interface implementation
45

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected