conntrack

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 11 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 {
	AF      ipnet.AddressFamily
	SrcIP   netip.Addr
	DstIP   netip.Addr
	DstAddr netip.Addr
	Proto   layers.IPProtocol
	SrcPort uint16
	DstPort uint16
	// contains filtered or unexported fields
}

func ParseHeader

func ParseHeader(pkt []byte) (*Connection, error)

func (*Connection) IsActive added in v0.10.1

func (conn *Connection) IsActive(pktlen int) bool

func (*Connection) IsValid

func (conn *Connection) IsValid(localIPv6 string) bool

func (*Connection) ParseProtocol

func (conn *Connection) ParseProtocol(pkt []byte) error

func (*Connection) ProtoFilter added in v0.10.1

func (conn *Connection) ProtoFilter() bool

Filter specific proto packet types

type Interface

type Interface interface {
	OutboundConnection(c *Connection, pktlen int)
	Close()
}

func Ctrl

func Ctrl() Interface

Jump to

Keyboard shortcuts

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