Documentation
¶
Overview ¶
Package tcp adds a TCP traceroute implementation to the agent
Package tcp adds a TCP traceroute implementation to the agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPv4 ¶
type TCPv4 struct {
Target net.IP
DestPort 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
// ParisTracerouteMode makes it act like paris-traceroute (fixed packet ID, randomized seq)
ParisTracerouteMode bool
// 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
}
TCPv4 encapsulates the data needed to run a TCPv4 traceroute
func NewTCPv4 ¶
func NewTCPv4(target net.IP, targetPort uint16, minTTL uint8, maxTTL uint8, delay time.Duration, timeout time.Duration, parisTracerouteMode bool, useDriver bool) *TCPv4
NewTCPv4 initializes a new TCPv4 traceroute instance
func (*TCPv4) Close ¶
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 (*TCPv4) Traceroute ¶
func (t *TCPv4) Traceroute() (*result.TracerouteRun, error)
Traceroute runs a TCP traceroute
func (*TCPv4) TracerouteSequentialSocket ¶
func (t *TCPv4) TracerouteSequentialSocket() (*result.TracerouteRun, error)
TracerouteSequentialSocket is not supported on unix
Click to show internal directories.
Click to hide internal directories.