package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Aug 5, 2016
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package icmp provides icmp enhanced methods based on the golang icmp package
View Source
const (
ProtocolIPv4ICMP = 1
ProtocolIPv6ICMP = 58
)
IANA ICMP
IsIPv4 returns true if ip version is v4
IsIPv6 returns true if ip version is v6
Ping represents ping request
NewPing creates a new ping object
PacketSize set packet size
Ping tries to send and receive a packet
Run loops the ping and print it out
Response represent ping response
Trace represents trace properties
Bind starts to listen for ICMP reply
Init set the basic parameters
Recv gets the replied icmp packet
Run provides trace based on the other methods
Send tries to send an UDP packet
SetTTL set the IP packat time to live
Source Files
¶
Click to show internal directories.
Click to hide internal directories.