Documentation ¶
Index ¶
- Constants
- type ICMPReturn
- func SendDiscoverICMP(localAddr string, dst net.Addr, ttl, id int, timeout time.Duration, seq int) (hop ICMPReturn, err error)
- func SendDiscoverICMPv6(localAddr string, dst net.Addr, ttl, id int, timeout time.Duration, seq int) (hop ICMPReturn, err error)
- func SendICMP(localAddr string, dst net.Addr, target string, ttl, id int, ...) (hop ICMPReturn, err error)
- func SendICMPv6(localAddr string, dst net.Addr, target string, ttl, id int, ...) (hop ICMPReturn, err error)
Constants ¶
View Source
const ( ProtocolICMP = 1 // Internet Control Message ProtocolIPv6ICMP = 58 // ICMP for IPv6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICMPReturn ¶
ICMPReturn contains the info for a returned ICMP
func SendDiscoverICMP ¶
func SendDiscoverICMP(localAddr string, dst net.Addr, ttl, id 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 SendDiscoverICMPv6 ¶
func SendDiscoverICMPv6(localAddr string, dst net.Addr, ttl, id int, timeout time.Duration, seq int) (hop ICMPReturn, err error)
SendDiscoverICMPv6 sends a ICMP to a given destination with a TTL to discover hops
Click to show internal directories.
Click to hide internal directories.