Discover Packages
github.com/gustavo-iniguez-goya/opensnitch
daemon
netstat
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jul 15, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type Entry
FindEntry(proto, srcIP, srcPort, dstIP, dstPort)
NewEntry(proto, srcIP, srcPort, dstIP, dstPort, userId, iNode)
Parse(proto)
Source Files
Documentation
Documentation
¶
type Entry
func FindEntry(proto string, srcIP net.IP, srcPort uint, dstIP net.IP, dstPort uint) *Entry
func NewEntry(proto string, srcIP net.IP, srcPort uint, dstIP net.IP, dstPort uint, ...) Entry
func Parse(proto string) ([]Entry, error)
Entry holds the information of a /proc/net/* entry.
For example, /proc/net/tcp:
sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode
0: 0100007F:13AD 00000000:0000 0A 00000000:00000000 00:00000000 00000000 1000 0 18083222
FindEntry looks for the connection in the list of known connections in ProcFS.
NewEntry creates a new entry with values from /proc/net/
Parse scans and retrieves the opened connections, from /proc/net/ files
Source Files
¶
Click to show internal directories.
Click to hide internal directories.