Versions in this module Expand all Collapse all v0 v0.0.1 May 25, 2023 Changes in this version + type PerformOption func(options *performOptions) + func WithFirstTTL(firstTTL int) PerformOption + func WithInterface(iface string) PerformOption + func WithMaxTTL(maxTTL int) PerformOption + func WithNetwork(network string) PerformOption + func WithPacketSize(packetSize int) PerformOption + func WithQueries(queries int) PerformOption + func WithTOS(tos int) PerformOption + func WithTimeout(timeout time.Duration) PerformOption + type Tracer interface + CheckEchoReply func(byte []byte, id, seq uint16) bool + EchoPacket func(id, seq uint16, packetSize int) ([]byte, error) + ListenConn func(options *performOptions) (net.PacketConn, error) + SendConn func(options *performOptions) (net.PacketConn, error) + SetTTLAndTOS func(ttl, tos int) + func NewIPTracer(preferIPv6 bool) Tracer + type TracerouteHop struct + ElapsedTime time.Duration + From net.Addr + N int + Success bool + TTL int + type TracerouteResult struct + func Traceroute(target *net.IPAddr, recvCh chan<- *TracerouteHop, option ...PerformOption) (result TracerouteResult, err error)