netstat

package
v0.0.0-...-761993d Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: MPL-2.0 Imports: 14 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasIPConnected

func HasIPConnected(val string) (found bool, elements []element, err error)

func HasListeningPort

func HasListeningPort(val string) (found bool, elements []element, err error)

func HasLocalIP

func HasLocalIP(ipStr string) (found bool, elements []element, err error)

HasLocalIP compares an input ip address with the ip addresses of the local interfaces, and returns found=true when found

func HasLocalMAC

func HasLocalMAC(macstr string) (found bool, elements []element, err error)

HasLocalMac returns the mac addresses that match an input MAC regex

func HasSeenIP

func HasSeenIP(val string) (found bool, elements []element, err error)

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

func HasSeenMac(val string) (found bool, elements []element, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL