Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateQuicPayloadWithRandomIds ¶
func GenerateQuicPayloadWithRandomIds() []byte
func HopPrinter ¶
func HopPrinter(h Hop)
Types ¶
type Config ¶
type Config struct { SrcAddr string BeginHop int MaxHops int NumMeasurements int ParallelRequests int Timeout time.Duration DestIP net.IP DestPort int Quic bool IPGeoSource ipgeo.Source RDns bool AlwaysWaitRDNS bool PacketInterval int TTLInterval int Lang string DN42 bool RealtimePrinter func(res *Result, ttl int) AsyncPrinter func(res *Result) PktSize int Maptrace bool DontFragment bool }
type ICMPTracer ¶
type ICMPTracer struct { Config // contains filtered or unexported fields }
func (*ICMPTracer) Execute ¶
func (t *ICMPTracer) Execute() (*Result, error)
func (*ICMPTracer) PrintFunc ¶
func (t *ICMPTracer) PrintFunc()
type ICMPTracerv6 ¶
type ICMPTracerv6 struct { Config // contains filtered or unexported fields }
func (*ICMPTracerv6) Execute ¶
func (t *ICMPTracerv6) Execute() (*Result, error)
func (*ICMPTracerv6) PrintFunc ¶
func (t *ICMPTracerv6) PrintFunc()
type PacketListener ¶
type PacketListener struct { Conn net.PacketConn Messages chan ReceivedMessage // contains filtered or unexported fields }
PacketListener 负责监听网络数据包并通过通道传递接收到的消息
func NewPacketListener ¶
func NewPacketListener(conn net.PacketConn, ctx context.Context) *PacketListener
NewPacketListener 创建一个新的数据包监听器 conn: 用于接收数据包的连接 ctx: 用于控制监听器生命周期的上下文 返回初始化好的 PacketListener 实例
func (*PacketListener) Start ¶
func (l *PacketListener) Start()
type TCPTracerIPv6 ¶ added in v1.3.9
func (*TCPTracerIPv6) Execute ¶ added in v1.3.9
func (t *TCPTracerIPv6) Execute() (*Result, error)
type UDPTracerIPv6 ¶ added in v1.3.9
type UDPTracerIPv6 struct { Config // contains filtered or unexported fields }
func (*UDPTracerIPv6) Execute ¶ added in v1.3.9
func (t *UDPTracerIPv6) Execute() (*Result, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.