flowsdecoder

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 9 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 {
	Options DecoderOptions

	TCPConnections  []*TCPConnection
	IPV4Reassembled []IPV4Reassembled
	// contains filtered or unexported fields
}

func New

func New(options DecoderOptions) *Decoder

func (*Decoder) EthernetFrame

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

func (*Decoder) Flush

func (fd *Decoder) Flush()

func (*Decoder) IPv4Packet added in v0.4.0

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

func (*Decoder) IPv6Packet added in v0.4.0

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

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) RAWIPFrame added in v0.4.0

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

LinkTypeRAW IPv4 or Ipv6

func (*Decoder) SLL2Packet added in v0.0.9

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

func (*Decoder) SLLPacket

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

type DecoderOptions added in v0.3.0

type DecoderOptions struct {
	CheckTCPOptions bool
}

type IPV4Reassembled

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

type TCPConnection

type TCPConnection struct {
	Client *TCPDirection
	Server *TCPDirection
	// contains filtered or unexported fields
}

func (*TCPConnection) Accept

func (*TCPConnection) ReassembledSG

func (*TCPConnection) ReassemblyComplete

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

type TCPDirection added in v0.0.8

type TCPDirection struct {
	Endpoint     TCPEndpoint
	HasStart     bool
	HasEnd       bool
	Buffer       *bytes.Buffer
	SkippedBytes uint64
}

type TCPEndpoint added in v0.0.8

type TCPEndpoint struct {
	IP   net.IP
	Port int
}

Jump to

Keyboard shortcuts

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