1
0
mirror of https://github.com/go-ping/ping.git synced 2025-05-13 01:44:32 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
Ben Kochie
3818264768 Use a UUID for packet tracking
Replace the random 8 byte tracker with a 16 byte UUID.
* Implement as a slice so that it can be extended later.
* Deprecate the exported `Pinger.Tracker` value.

https://github.com/go-ping/ping/issues/142

Signed-off-by: Ben Kochie <superq@gmail.com>
2021-09-11 16:15:12 +01:00
Marcelo Magallon
ff8be33200
Provide an abstraction over icmp.PacketConn ()
The differences between IPv4 and IPv6 APIs can be moved to a single type so that we don't need to keep track of them all over the code. We can also split Run() into two parts: the top one sets up the listener and the bottom one sends and receives packets. In this way, the bottom part can be tested using a mock packet connection.
2021-05-07 00:38:00 +01:00
Prasanna Kumar
805de73348
Initialize go module ()
* Initialize go module

* Update go.mod

* Update go.sum
2020-09-13 12:04:30 +02:00