flowsdecoder

package
v0.0.0-...-20f79d0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 8 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

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

func (*Decoder) IPv6Packet

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

func (*Decoder) LoopbackFrame

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

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

LinkTypeRAW IPv4 or Ipv6

func (*Decoder) SLL2Packet

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

func (*Decoder) SLLPacket

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

type DecoderOptions

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

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

type TCPEndpoint

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