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