tcpasm

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assembler

type Assembler struct {
	Warn    *log.Logger
	Decoder gopacket.Decoder
	Created StreamCreated

	// FlushInterval is interval to calls
	// tcpassembly.Assembler.FlushWithOptions() repeatedly.
	// Defailt is 5min.
	FlushInterval time.Duration
}

func (*Assembler) Assemble

func (a *Assembler) Assemble(ctx context.Context, r io.Reader) error

func (*Assembler) New

func (a *Assembler) New(netFlow, tcpFlow gopacket.Flow) tcpassembly.Stream

type Endpoint

type Endpoint struct {
	Address string
	Port    uint16
}

func NewEndpoint

func NewEndpoint(net, tcp gopacket.Endpoint) (Endpoint, error)

func (Endpoint) PortString

func (e Endpoint) PortString() string

func (Endpoint) String

func (e Endpoint) String() string

type StreamCreated

type StreamCreated func(src, dst Endpoint, r io.ReadCloser) error

Jump to

Keyboard shortcuts

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