Commit Graph

9 Commits

Author SHA1 Message Date
Charlie Jonas
54fa5d1e4a Add size flag to demo pinger
Adds a command line flag to the demo pinger which lets the user set the
the size of the ICMP payload. This is useful for testing. The default is
set at 16 which is the default for an unconfigured pinger.

Signed-off-by: Charlie Jonas <charlie@charliejonas.co.uk>
2021-03-26 23:36:52 +00:00
Steven Soroka
30a8f08ad2 Process duplicate packets and make seeds goroutine-safe (#130)
Duplicate ICMP packets are now detected and processed using a separate callback and field in the statistics struct.

Co-authored-by: Charlie Jonas <charlie@charliejonas.co.uk>
Co-authored-by: Ben Kochie <superq@gmail.com>
2021-01-31 13:15:27 +00:00
maddie
e9da6dae98 Return error from Run() (#81)
* Return error to caller and let them handle it
* Use explicit return in Run()
* Silence linter for not handling recvICMP error
2020-09-17 15:08:15 +01:00
Ben Kochie
e11dda7fa5 Add golangci-lint configuration (#100)
* Add a configuration for golangci-lint.
* Fix some linter issues.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-09-14 20:23:32 +02:00
Cam
41725b6c24 Update readme and sample command to go-ping organization
closes #90
2020-09-12 12:11:16 -07:00
Clint Armstrong
3745d7b591 expose ttl on returned ping 2019-05-28 15:33:38 -07:00
Cameron Sparr
74b9e0e9f9 Update sample code, README, and circle v2 (#42)
Update sample code, README, and circle v2
2018-11-06 12:45:58 +00:00
Cameron Sparr
3535a0e9a0 Update doc on privileged ping and install 2016-02-01 15:28:30 -07:00
Cameron Sparr
77403bd6ed First commit of go-ping library 2016-02-01 15:21:12 -07:00