Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/40t/go-sniffer
/ types & classes
Types & classes
19 in github.com/40t/go-sniffer
⨍
Functions
56
◇
Types & classes
19
↓ 4 callers
TypeAlias
Sequence
Sequence is a TCP sequence number. It provides a few convenience functions for handling TCP wrap-around. The sequence should always be in the range
core/assembly.go:30
Struct
Assembler
Assembler handles reassembling TCP streams. It is not safe for concurrency... after passing a packet in via the Assemble call, the caller must wait f
core/assembly.go:445
Struct
AssemblerOptions
AssemblerOptions controls the behavior of each assembler. Modify the options of each assembler you create to change their behavior.
core/assembly.go:373
Struct
Cmd
core/cmd.go:20
Struct
Core
core/core.go:3
Struct
Dispatch
core/dispatch.go:14
Struct
ExternalPlug
core/plug.go:39
Struct
Plug
core/plug.go:17
Interface
PlugInterface
All internal plug-ins must implement this interface ResolvePacket - entry BPFFilter - set BPF, like: mysql(tcp and port 3306) SetFlag - plug
core/plug.go:32
Struct
ProtocolStream
core/dispatch.go:80
Struct
ProtocolStreamFactory
core/dispatch.go:76
Struct
Reassembly
Reassembly objects are passed by an Assembler into Streams using the Reassembled call. Callers should not need to create these structs themselves exc
core/assembly.go:60
Interface
Stream
Stream is implemented by the caller to handle incoming reassembled TCP data. Callers create a StreamFactory, then StreamPool uses it to create a new S
core/assembly.go:162
Interface
StreamFactory
StreamFactory is used by assembly to create a new stream for each new TCP session.
core/assembly.go:179
Struct
StreamPool
StreamPool stores all streams created by Assemblers, allowing multiple assemblers to work together on stream processing while enforcing the fact that
core/assembly.go:286
Struct
connection
core/assembly.go:350
TypeAlias
key
core/assembly.go:265
Struct
page
page is used to store TCP data we're not ready for yet (out-of-order packets). Unused pages are stored in and returned from a pageCache, which avoids
core/assembly.go:82
Struct
pageCache
pageCache is a concurrency-unsafe store of page objects we use to avoid memory allocation as much as we can. It grows but never shrinks.
core/assembly.go:92