Documentation ¶
Index ¶
- Variables
- type Connection
- func (conn *Connection) GetAddressFamily() netdb.AddressFamily
- func (conn *Connection) GetNetConnection() *netdb.Connection
- func (conn *Connection) GetProtocol() netdb.Protocol
- func (conn *Connection) IsActive(pktlen int) bool
- func (conn *Connection) IsValid(localIPv6 string) bool
- func (conn *Connection) ParseProtocol(pkt []byte) error
- func (conn *Connection) ProtoFilter() bool
- type Interface
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestQueue = make(chan *netdb.ConntrackTableRequest, 128)
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) GetAddressFamily ¶ added in v0.11.0
func (conn *Connection) GetAddressFamily() netdb.AddressFamily
func (*Connection) GetNetConnection ¶ added in v0.11.0
func (conn *Connection) GetNetConnection() *netdb.Connection
func (*Connection) GetProtocol ¶ added in v0.11.0
func (conn *Connection) GetProtocol() netdb.Protocol
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() GetTable(r *netdb.ConntrackTableRequest) *netdb.ConntrackTableResponse }
Click to show internal directories.
Click to hide internal directories.