udp

package
v0.0.0-...-b77ae15 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package udp adds a UDP traceroute implementation to the agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPv4

type UDPv4 struct {
	Target     net.IP
	TargetPort uint16

	NumPaths uint16
	MinTTL   uint8
	MaxTTL   uint8
	Delay    time.Duration // delay between sending packets (not applicable if we go the serial send/receive route)
	Timeout  time.Duration // full timeout for all packets
	// contains filtered or unexported fields
}

UDPv4 encapsulates the data needed to run a UDPv4 traceroute

func NewUDPv4

func NewUDPv4(target net.IP, targetPort uint16, numPaths uint16, minTTL uint8, maxTTL uint8, delay time.Duration, timeout time.Duration) *UDPv4

NewUDPv4 initializes a new UDPv4 traceroute instance

func (*UDPv4) Close

func (u *UDPv4) Close() error

Close doesn't to anything yet, but we should use this to close out long running sockets when we're done with a path test

func (*UDPv4) TracerouteSequential

func (u *UDPv4) TracerouteSequential() (*common.Results, error)

TracerouteSequential runs a traceroute

Jump to

Keyboard shortcuts

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