tcp

package
v0.6.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2022 License: BSD-3-Clause, GPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StreamFactory = newStreamFactory()

StreamFactory is a structure that manages TCP stream reassembly

Functions

func CleanupReassembly

func CleanupReassembly(wait bool, assemblers []*reassembly.Assembler)

CleanupReassembly will shutdown the reassembly.

func GetStreamPool

func GetStreamPool() *reassembly.StreamPool

GetStreamPool returns the stream pool.

func NumSavedTCPConns

func NumSavedTCPConns() int64

NumSavedTCPConns returns the number of saved TCP connections.

func ReassemblePacket

func ReassemblePacket(packet gopacket.Packet, assembler *reassembly.Assembler)

ReassemblePacket takes care of submitting a TCP / UDP packet to the reassembly.

func SetLogger

func SetLogger(l *zap.Logger)

SetLogger sets the logger instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL