traceroute

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Icmpext

type Icmpext struct {
	// contains filtered or unexported fields
}

Traceroute ICMP extension reply

func (*Icmpext) Objects

func (i *Icmpext) Objects() []interface{}

ICMP extension objects.

func (*Icmpext) Rfc4884

func (i *Icmpext) Rfc4884() int

"1" if length indication is present, "0" otherwise.

func (*Icmpext) UnmarshalJSON

func (i *Icmpext) UnmarshalJSON(b []byte) error

func (*Icmpext) Version

func (i *Icmpext) Version() int

RFC4884 version.

type Reply

type Reply struct {
	// contains filtered or unexported fields
}

Traceroute reply.

func (*Reply) Dstoptsize

func (r *Reply) Dstoptsize() int

Size of destination options header (IPv6) (optional).

func (*Reply) Edst

func (r *Reply) Edst() string

Destination address in the packet that triggered the error ICMP if different from the target of the measurement (optional).

func (*Reply) Err

func (r *Reply) Err() string

Error ICMP: "N" (network unreachable,), "H" (destination unreachable), "A" (administratively prohibited), "P" (protocol unreachable), "p" (port unreachable) "h" (beyond scope, from fw 4650) (optional).

func (*Reply) Flags

func (r *Reply) Flags() string

TCP flags in the reply packet, for TCP traceroute, concatenated, in the order 'F' (FIN), 'S' (SYN), 'R' (RST), 'P' (PSH), 'A' (ACK), 'U' (URG) (optional).

func (*Reply) From

func (r *Reply) From() string

IPv4 or IPv6 source address in reply.

func (*Reply) Hbhoptsize

func (r *Reply) Hbhoptsize() int

Size of hop-by-hop options header (IPv6) (optional).

func (*Reply) Icmpext

func (r *Reply) Icmpext() *Icmpext

Information when icmp header is found in reply (optional).

func (*Reply) Ittl

func (r *Reply) Ittl() int

Time-to-live in packet that triggered the error ICMP. Omitted if equal to 1 (optional).

func (*Reply) Late

func (r *Reply) Late() int

Number of packets a reply is late, in this case rtt is not present (optional).

func (*Reply) Mtu

func (r *Reply) Mtu() int

Path MTU from a packet too big ICMP (optional).

func (*Reply) Rtt

func (r *Reply) Rtt() float64

Round-trip-time of reply, not present when the response is late.

func (*Reply) Size

func (r *Reply) Size() int

Size of reply.

func (*Reply) Ttl

func (r *Reply) Ttl() int

Time-to-live in reply.

func (*Reply) UnmarshalJSON

func (r *Reply) UnmarshalJSON(b []byte) error

func (*Reply) X

func (r *Reply) X() string

On timeout: "*".

type Result

type Result struct {
	// contains filtered or unexported fields
}

Traceroute result.

func (*Result) Error

func (r *Result) Error() string

When an error occurs trying to send a packet. In that case there will not be a result structure (optional).

func (*Result) Hop

func (r *Result) Hop() int

Hop number.

func (*Result) Replies

func (r *Result) Replies() []*Reply

Traceroute replies (called "result" in RIPE Atlas API documentation).

func (*Result) UnmarshalJSON

func (r *Result) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL