Documentation ¶
Index ¶
- func AggroScan(iface *net.Interface, timeout float64) (arps []layers.ARP, err error)
- func ReadInterface(handle *pcap.Handle, iface *net.Interface, stop chan struct{})
- func Scan(iface *net.Interface, timeout float64, delay float64) (arps []layers.ARP, err error)
- func ScanAllInterfaces(timeout float64, delay float64) (results interface{}, err error)
- func ScanInterface(name string, timeout float64, delay float64) (results interface{}, err error)
- func SecsToDuration(t float64) time.Duration
- func TimeoutLookupHost(host string, timeout float64) (addrs []string, err error)
- type AddrResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadInterface ¶
func Scan ¶
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 ScanInterface ¶
func SecsToDuration ¶
Types ¶
type AddrResponse ¶
type AddrResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.