conman

package
v0.0.0-...-62bb9e5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: GPL-3.0 Imports: 13 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 {
	Protocol string
	SrcIP    net.IP
	SrcPort  uint
	DstIP    net.IP
	DstPort  uint
	DstHost  string
	Entry    *netstat.Entry
	Process  *procmon.Process
	// contains filtered or unexported fields
}

Connection represents an outgoing connecion.

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