Documentation ¶
Index ¶
- Constants
- func AggregateMulti(hops [][]Hop) [][]MHop
- func RunMultiTrace(host string, source string, source6 string, maxrtt time.Duration, maxttl int, ...) ([][]Hop, error)
- func RunPTrace(host string, source string, source6 string, maxrtt time.Duration, maxttl int, ...) ([][]Hop, error)
- type Callback
- type Hop
- type LookupCache
- type MHop
Constants ¶
View Source
const ( // ProtocolICMP icmp protocol id ProtocolICMP = 1 // ProtocolICMP6 icmp protocol id ProtocolICMP6 = 58 // MaxTimeouts sets number of hops without replay before trace termination MaxTimeouts = 3 )
Variables ¶
This section is empty.
Functions ¶
func AggregateMulti ¶
AggregateMulti process result of RunMultiTrace and create aggregated result
Types ¶
type Hop ¶
type Hop struct { Addr net.Addr Host string AS int64 RTT time.Duration Final bool Timeout bool Down bool Error error }
Hop represents each hop of trace
type LookupCache ¶
type LookupCache struct {
// contains filtered or unexported fields
}
LookupCache used to prevent AS-DNS requests for same hosts
func (*LookupCache) LookupAS ¶
func (cache *LookupCache) LookupAS(ip string) int64
LookupAS returns AS number for IP using origin.asn.cymru.com service
func (*LookupCache) LookupHost ¶
func (cache *LookupCache) LookupHost(ip string) string
LookupHost returns AS number for IP using origin.asn.cymru.com service
Click to show internal directories.
Click to hide internal directories.