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
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
// LoosenICMPSrc disables checking the source IP/port in ICMP payloads when enabled.
// Reason: Some environments don't properly translate the payload of an ICMP TTL exceeded
// packet meaning you can't trust the source address to correspond to your own private IP.
LoosenICMPSrc bool
// UseWindowsDriver controls whether to use driver-based packet capture (Windows)
UseWindowsDriver bool
// contains filtered or unexported fields
}
UDPv4 encapsulates the data needed to run a UDPv4 traceroute
func NewUDPv4 ¶
func NewUDPv4(target net.IP, targetPort uint16, minTTL uint8, maxTTL uint8, delay time.Duration, timeout time.Duration, useDriver bool) *UDPv4
NewUDPv4 initializes a new UDPv4 traceroute instance
func (*UDPv4) Traceroute ¶
func (u *UDPv4) Traceroute() (*result.TracerouteRun, error)
Traceroute runs a UDP traceroute
Click to show internal directories.
Click to hide internal directories.