arp

package
v0.0.0-...-d91f73c Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRefresh

func AutoRefresh(t time.Duration)

func CacheLastUpdate

func CacheLastUpdate() time.Time

func CacheUpdate

func CacheUpdate()

func CacheUpdateCount

func CacheUpdateCount() int

func StopAutoRefresh

func StopAutoRefresh()

Types

type ArpEntry

type ArpEntry struct {
	MacAddress string
	IPAddress  string
	Iface      string
	Permanent  bool
}

func ReverseSearch

func ReverseSearch(mac string) []ArpEntry
func Search(ip string) ArpEntry

Search looks up the MAC address for an IP address in the arp table

type ArpTable

type ArpTable map[string]ArpEntry

func Table

func Table() ArpTable

Jump to

Keyboard shortcuts

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