network

package
v0.0.0-...-e43ad57 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_NUMBER_OF_TARGETS = 4096

Variables

This section is empty.

Functions

func GetIPsForCidr

func GetIPsForCidr(cidr string) ([]string, error)

Types

type ArpTableEntry

type ArpTableEntry struct {
	IpAddress  string
	MacAddress string
}

func FilterArpTable

func FilterArpTable(ipAddresses []string) []ArpTableEntry

type PingResult

type PingResult struct {
	Target  string
	Count   int
	Timeout time.Duration
	Stats   *probing.Statistics
	Err     error
}

func Ping

func Ping(target string, packetCount int, timeout time.Duration, ls *logging.LogSetup) (result PingResult)

func PingConcurrent

func PingConcurrent(targets []string, packetCount int, singleActionTimeout time.Duration, ls *logging.LogSetup) ([]PingResult, error)

Jump to

Keyboard shortcuts

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