message.go 470 B

12345678910111213141516171819202122
  1. package probing
  2. import (
  3. "net"
  4. "time"
  5. )
  6. // Packet represents a received and processed ICMP echo packet.
  7. type xPacket struct {
  8. // IPAddr is the address of the host being pinged.
  9. IPAddr *net.IPAddr
  10. // ID is the ICMP identifier.
  11. ID int
  12. // Seq is the ICMP sequence number.
  13. Seq int
  14. // TTL is the Time To Live on the packet.
  15. TTL int
  16. // NBytes is the number of bytes in the message.
  17. Nbytes int
  18. // Rtt is the round-trip time it took to ping.
  19. Rtt time.Duration
  20. }