conman

package
v0.0.0-...-1e6d2d4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: GPL-3.0 Imports: 15 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 {
	Pkt     *netfilter.Packet
	Entry   *netstat.Entry
	Process *procmon.Process

	Protocol string
	DstHost  string
	SrcIP    net.IP
	DstIP    net.IP

	SrcPort uint
	DstPort uint
}

Connection represents an outgoing connection.

func NewConnection

func NewConnection(nfp *netfilter.Packet) (c *Connection, err error)

NewConnection creates a new Connection object, and returns the details of it.

func NewConnection6

func NewConnection6(nfp *netfilter.Packet) (c *Connection, err error)

NewConnection6 creates a IPv6 new Connection object, and returns the details of it.

func Parse

func Parse(nfp netfilter.Packet, interceptUnknown bool) *Connection

Parse extracts the IP layers from a network packet to determine what process generated a connection.

func (*Connection) Serialize

func (c *Connection) Serialize() *protocol.Connection

Serialize returns a connection serialized.

func (*Connection) String

func (c *Connection) String() string

func (*Connection) To

func (c *Connection) To() string

To returns the destination host of a connection.

Jump to

Keyboard shortcuts

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