flowsdecoder

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	TCPConnections  []*TCPConnection
	IPV4Reassembled []IPV4Reassembled
	// contains filtered or unexported fields
}

func New

func New() *Decoder

func (*Decoder) EthernetFrame

func (fd *Decoder) EthernetFrame(bs []byte) error

func (*Decoder) Flush

func (fd *Decoder) Flush()

func (*Decoder) LoopbackFrame added in v0.0.3

func (fd *Decoder) LoopbackFrame(bs []byte) error

func (*Decoder) New

func (fd *Decoder) New(net, transport gopacket.Flow, tcp *layers.TCP, ac reassembly.AssemblerContext) reassembly.Stream

func (*Decoder) SLLPacket

func (fd *Decoder) SLLPacket(bs []byte) error

type IPEndpoint

type IPEndpoint struct {
	IP   net.IP
	Port int
}

type IPV4Reassembled

type IPV4Reassembled struct {
	SourceIP      net.IP
	DestinationIP net.IP
	Datagram      []byte
}

type TCPConnection

type TCPConnection struct {
	ClientEndpoint IPEndpoint
	ServerEndpoint IPEndpoint
	ClientToServer *bytes.Buffer
	ServerToClient *bytes.Buffer
	// contains filtered or unexported fields
}

func (*TCPConnection) Accept

func (*TCPConnection) ReassembledSG

func (*TCPConnection) ReassemblyComplete

func (t *TCPConnection) ReassemblyComplete(ac reassembly.AssemblerContext) bool

Jump to

Keyboard shortcuts

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