Documentation
¶
Index ¶
- Constants
- func GetCloseTimedoutTcpChannelsInterval() time.Duration
- func GetMaxBufferedPagesPerConnection() int
- func GetMaxBufferedPagesTotal() int
- func GetMemoryProfilingEnabled() bool
- func GetTcpChannelTimeoutMs() time.Duration
- func NewDnsFactory(pcapId string, identifyMode bool, outputChannel chan *api.OutputChannelItem, ...) *dnsFactory
- func NewTcpReader(ident string, tcpId *api.TcpID, parent *tcpStream, isClient bool, ...) *tcpReader
- func NewTcpReaderDataMsg(data []byte, ci gopacket.CaptureInfo) api.TcpReaderDataMsg
- func NewTcpReassemblyStream(ident string, tcp *layers.TCP, fsmOptions reassembly.TCPSimpleFSMOptions, ...) reassembly.Stream
- func NewTcpStream(pcapId string, identifyMode bool, isTargeted bool, streamsMap api.TcpStreamMap) *tcpStream
- func NewTcpStreamFactory(pcapId string, identifyMode bool, outputChannel chan *api.OutputChannelItem, ...) *tcpStreamFactory
- func NewTcpStreamMap(cont bool) api.TcpStreamMap
- type AssemblerStats
- type TcpAssembler
Constants ¶
View Source
const ( MemoryProfilingEnabledEnvVarName = "MEMORY_PROFILING_ENABLED" MemoryProfilingDumpPath = "MEMORY_PROFILING_DUMP_PATH" MemoryProfilingTimeIntervalSeconds = "MEMORY_PROFILING_INTERVAL_SECONDS" MemoryUsageTimeIntervalMilliseconds = "MEMORY_USAGE_INTERVAL_MILLISECONDS" MaxBufferedPagesTotalEnvVarName = "MAX_BUFFERED_PAGES_TOTAL" MaxBufferedPagesPerConnectionEnvVarName = "MAX_BUFFERED_PAGES_PER_CONNECTION" MaxBufferedPagesTotalDefaultValue = 5000 MaxBufferedPagesPerConnectionDefaultValue = 5000 TcpStreamChannelTimeoutMsEnvVarName = "TCP_STREAM_CHANNEL_TIMEOUT_MS" TcpStreamChannelTimeoutMsDefaultValue = 10000 CloseTimedoutTcpChannelsIntervalMsEnvVarName = "CLOSE_TIMEDOUT_TCP_STREAM_CHANNELS_INTERVAL_MS" CloseTimedoutTcpChannelsIntervalMsDefaultValue = 1000 CloseTimedoutTcpChannelsIntervalMsMinValue = 10 CloseTimedoutTcpChannelsIntervalMsMaxValue = 10000 )
Variables ¶
This section is empty.
Functions ¶
func GetMaxBufferedPagesPerConnection ¶
func GetMaxBufferedPagesPerConnection() int
func GetMaxBufferedPagesTotal ¶
func GetMaxBufferedPagesTotal() int
func GetMemoryProfilingEnabled ¶
func GetMemoryProfilingEnabled() bool
func GetTcpChannelTimeoutMs ¶
func NewDnsFactory ¶ added in v0.6.0
func NewDnsFactory(pcapId string, identifyMode bool, outputChannel chan *api.OutputChannelItem, streamsMap api.TcpStreamMap) *dnsFactory
func NewTcpReader ¶
func NewTcpReaderDataMsg ¶
func NewTcpReaderDataMsg(data []byte, ci gopacket.CaptureInfo) api.TcpReaderDataMsg
func NewTcpReassemblyStream ¶
func NewTcpReassemblyStream(ident string, tcp *layers.TCP, fsmOptions reassembly.TCPSimpleFSMOptions, stream *tcpStream) reassembly.Stream
func NewTcpStream ¶
func NewTcpStream(pcapId string, identifyMode bool, isTargeted bool, streamsMap api.TcpStreamMap) *tcpStream
func NewTcpStreamFactory ¶
func NewTcpStreamFactory(pcapId string, identifyMode bool, outputChannel chan *api.OutputChannelItem, streamsMap api.TcpStreamMap, opts *misc.Opts) *tcpStreamFactory
func NewTcpStreamMap ¶
func NewTcpStreamMap(cont bool) api.TcpStreamMap
Types ¶
type AssemblerStats ¶
type TcpAssembler ¶
type TcpAssembler struct { *reassembly.Assembler // contains filtered or unexported fields }
func NewTcpAssembler ¶
func NewTcpAssembler(pcapId string, identifyMode bool, outputChannel chan *api.OutputChannelItem, streamsMap api.TcpStreamMap, opts *misc.Opts) *TcpAssembler
func (*TcpAssembler) DumpStats ¶
func (a *TcpAssembler) DumpStats() AssemblerStats
func (*TcpAssembler) DumpStreamPool ¶
func (a *TcpAssembler) DumpStreamPool()
func (*TcpAssembler) ProcessPacket ¶
func (a *TcpAssembler) ProcessPacket(packetInfo source.TcpPacketInfo, dumpPacket bool)
func (*TcpAssembler) ProcessPackets ¶
func (a *TcpAssembler) ProcessPackets(packets <-chan source.TcpPacketInfo)
func (*TcpAssembler) WaitAndDump ¶
func (a *TcpAssembler) WaitAndDump()
Click to show internal directories.
Click to hide internal directories.