connection

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Timestamp       time.Time
	UID             uint64
	SourceIP        string
	SourcePort      int
	DestinationIP   string
	DestinationPort int
	TransportType   string
	Duration        float64
	State           string        `json:",omitempty"`
	Payload         *bytes.Buffer `json:"-"`
	Analyzers       map[string]interface{}
}

Connection is ...

func NewTCP

func NewTCP(ts *tcpStream) *Connection

NewTCP is ...

func NewUDP

func NewUDP(packet gopacket.Packet, ci gopacket.CaptureInfo) *Connection

NewUDP is ...

type TCPStreamFactory

type TCPStreamFactory struct {
	Assembler      *reassembly.Assembler
	AssemblerMutex sync.Mutex
	ConnTimeout    int
	Ticker         *time.Ticker
	Connections    chan *Connection
}

TCPStreamFactory is ...

func (*TCPStreamFactory) AssemblePacket

func (tsf *TCPStreamFactory) AssemblePacket(netFlow gopacket.Flow, tcp *layers.TCP)

AssemblePacket is ...

func (*TCPStreamFactory) CreateAssembler

func (tsf *TCPStreamFactory) CreateAssembler()

CreateAssembler is ...

func (*TCPStreamFactory) New

New is ...

func (*TCPStreamFactory) NewPacket

func (tsf *TCPStreamFactory) NewPacket(netFlow gopacket.Flow, tcp *layers.TCP)

NewPacket is ...

Jump to

Keyboard shortcuts

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