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.
Click to show internal directories.
Click to hide internal directories.