Documentation ¶
Overview ¶
Package common contains common functionality for both TCP and UDP traceroute implementations
Index ¶
Constants ¶
View Source
const ( // IPProtoICMP is the IP protocol number for ICMP // we create our own constant here because there are // different imports for the constant in different // operating systems IPProtoICMP = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CanceledError ¶
type CanceledError string
CanceledError is sent when a listener is canceled
func (CanceledError) Error ¶
func (c CanceledError) Error() string
type Hop ¶
type Hop struct { IP net.IP Port uint16 ICMPType layers.ICMPv4TypeCode RTT time.Duration IsDest bool }
Hop encapsulates information about a single hop in a traceroute
Click to show internal directories.
Click to hide internal directories.