flowsdecoder

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 8 Imported by: 0

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