Documentation ¶
Overview ¶
Package ping This package is used to send an ICMP echo request to a given address and return the time it took to get a reply.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IPType4 is the type of IP address to use for IPv4 IPType4 = IPType{ Type: "4", ListenAddr: "0.0.0.0", Network: "ip4", ICMPNetwork: "ip4:icmp", ProtocolNumber: 1, RequestMessageType: ipv4.ICMPTypeEcho, ReplyMessageType: ipv4.ICMPTypeEchoReply, } // IPType6 is the type of IP address to use for IPv6 IPType6 = IPType{ Type: "6", ListenAddr: "::", Network: "ip6", ICMPNetwork: "ip6:ipv6-icmp", ProtocolNumber: 58, RequestMessageType: ipv6.ICMPTypeEchoRequest, ReplyMessageType: ipv6.ICMPTypeEchoReply, } )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.