mtr

package
v0.0.0-...-676ac07 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MtrString

func MtrString(addr string, srcAddr string, maxHops int, count int, timeout time.Duration, icmpID int, ipv6 bool) (result string, err error)

MtrString Console print traceroute operation

Types

type MtrOptions

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

MtrOptions MTR Options

func (*MtrOptions) Count

func (options *MtrOptions) Count() int

Count Getter

func (*MtrOptions) MaxHops

func (options *MtrOptions) MaxHops() int

MaxHops Getter

func (*MtrOptions) PacketSize

func (options *MtrOptions) PacketSize() int

PacketSize Getter

func (*MtrOptions) SetCount

func (options *MtrOptions) SetCount(count int)

SetCount Setter

func (*MtrOptions) SetMaxHops

func (options *MtrOptions) SetMaxHops(maxHops int)

SetMaxHops Setter

func (*MtrOptions) SetPacketSize

func (options *MtrOptions) SetPacketSize(packetSize int)

SetPacketSize Setter

func (*MtrOptions) SetTimeout

func (options *MtrOptions) SetTimeout(timeout time.Duration)

SetTimeout Setter

func (*MtrOptions) Timeout

func (options *MtrOptions) Timeout() time.Duration

Timeout Getter

type MtrResult

type MtrResult struct {
	DestAddr      string                         `json:"dest_address"`
	Hops          []common.IcmpHop               `json:"hops"`
	HopSummaryMap map[string]*common.IcmpSummary `json:"hop_summary_map"`
}

MtrResult Calculated results

func Mtr

func Mtr(addr string, srcAddr string, maxHops int, count int, timeout time.Duration, icmpID int, ipv6 bool) (*MtrResult, error)

Mtr Return traceroute object

type MtrReturn

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

MtrReturn MTR Response TODO: Add Jitter RFC 1889 (http://www.ietf.org/rfc/rfc1889.txt) is the RFC for RTP, later superseded by RFC 3550. How interarrival jitter is calculated RFC 3550 (http://www.ietf.org/rfc/rfc3550.txt)

Jump to

Keyboard shortcuts

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