icmp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: BSD-2-Clause Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICMPReturn

type ICMPReturn struct {
	Success bool
	Addr    string
	Elapsed time.Duration
}

ICMPReturn contains the info for a returned ICMP

func SendDiscoverICMP

func SendDiscoverICMP(localAddr string, dst net.Addr, ttl, pid int, timeout time.Duration, seq int) (hop ICMPReturn, err error)

SendDiscoverICMP sends a ICMP to a given destination with a TTL to discover hops

func SendICMP

func SendICMP(localAddr string, dst net.Addr, target string, ttl, pid int, timeout time.Duration, seq int) (hop ICMPReturn, err error)

SendICMP sends a ICMP to a given destination which requires a reply from that specific destination

Jump to

Keyboard shortcuts

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