netdog

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggroScan

func AggroScan(iface *net.Interface, timeout float64) (arps []layers.ARP, err error)

func ReadInterface

func ReadInterface(handle *pcap.Handle, iface *net.Interface, stop chan struct{})

func Scan

func Scan(iface *net.Interface, timeout float64, delay float64) (arps []layers.ARP, err error)

Scan scans an individual interface's local network for machines using ARP requests/replies.

Scan loops forever, sending packets out regularly. It returns an error if it's ever unable to write a packet.

func ScanAllInterfaces

func ScanAllInterfaces(timeout float64, delay float64) (results interface{}, err error)

func ScanInterface

func ScanInterface(name string, timeout float64, delay float64) (results interface{}, err error)

func SecsToDuration

func SecsToDuration(t float64) time.Duration

func TimeoutLookupHost

func TimeoutLookupHost(host string, timeout float64) (addrs []string, err error)

Types

type AddrResponse

type AddrResponse struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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