Documentation ¶
Overview ¶
netstat is a module that retrieves network information about the endpoint, such as mac addresses, local and connected IPs, listening TCP and UDP sockets and peers
Index ¶
- func HasIPConnected(val string) (found bool, elements []element, err error)
- func HasListeningPort(val string) (found bool, elements []element, err error)
- func HasLocalIP(ipStr string) (found bool, elements []element, err error)
- func HasLocalMAC(macstr string) (found bool, elements []element, err error)
- func HasSeenIP(val string) (found bool, elements []element, err error)
- func HasSeenMac(val string) (found bool, elements []element, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasIPConnected ¶
func HasListeningPort ¶
func HasLocalIP ¶
HasLocalIP compares an input ip address with the ip addresses of the local interfaces, and returns found=true when found
func HasLocalMAC ¶
HasLocalMac returns the mac addresses that match an input MAC regex
func HasSeenIP ¶
HasSeenIP on linux looks for a matching IP address in /proc/net/arp or in individual processes <pid>/net/arp, and returns its MAC and IP address if found
func HasSeenMac ¶
HasSeenMac on linux looks for a matching mac address in /proc/net/arp or in individual processes <pid>/net/arp, and returns its MAC and IP address if found
Types ¶
This section is empty.