12345678910111213141516171819202122 |
- package probing
- import (
- "net"
- "time"
- )
- // Packet represents a received and processed ICMP echo packet.
- type xPacket struct {
- // IPAddr is the address of the host being pinged.
- IPAddr *net.IPAddr
- // ID is the ICMP identifier.
- ID int
- // Seq is the ICMP sequence number.
- Seq int
- // TTL is the Time To Live on the packet.
- TTL int
- // NBytes is the number of bytes in the message.
- Nbytes int
- // Rtt is the round-trip time it took to ping.
- Rtt time.Duration
- }
|