- 03 Jun, 2019 1 commit
-
-
Greg authored
* Make processPacket more performant * Add more info for debugging to returned error * remove old benchmark * change print statement to error return
-
- 30 May, 2019 1 commit
-
-
Alirie Gray authored
-
- 29 May, 2019 1 commit
-
-
Alirie Gray authored
-
- 28 May, 2019 2 commits
-
-
Maximiliano Churichi authored
-
Clint Armstrong authored
-
- 06 Nov, 2018 7 commits
-
-
Cameron Sparr authored
fixes part of #6
-
Ben Kochie authored
* Move default case out of select block. * Add defers to close resources. * `go fmt` cleanup.
-
Cameron Sparr authored
closes #14 closes #33
-
Lincoln Thurlow authored
Commit d046b245 introduces a bug which causes ping to always fail. The source of this bug is: ``` // Check if reply from same ID body := m.Body.(*icmp.Echo) if body.ID != p.id { return nil } ``` Which due to the selection of p.id requires that SetPrivileged is set to true. In the case where Privileged (i.e p.network == udp) it is left to the kernel to set the ICMP id. https://lwn.net/Articles/443051/ Discusses the introduction of non-setuid-less ping. The kernel implementation for this interface dictates using the local port, which gets mapped into the ping_table struct. There is no current implementation in the go icmp library to address this problem directly. To address this issue, I've added a `Tracker` field for `Pinger` as well as `IcmpData` datastructure to allow for uniquely tracking icmp requests. The id (as with the `id` field) is not unique, but will statistically rare for duplicates.
-
Ben Kochie authored
Include the original address in the Packet type for use in `pinger.OnRecv()`.
-
Cameron Sparr authored
Update sample code, README, and circle v2
-
Xie Zhenye authored
* remove signal handler, add Stop method * Added ICMP Packet ID to distinguish ICMP replies
-
- 30 Aug, 2018 1 commit
-
-
Maciek Szczesniak authored
-
- 29 Aug, 2018 3 commits
- 08 Feb, 2016 1 commit
-
-
Cameron Sparr authored
-
- 07 Feb, 2016 1 commit
-
-
Cameron Sparr authored
-
- 03 Feb, 2016 1 commit
-
-
Cameron Sparr authored
-
- 01 Feb, 2016 6 commits
-
-
Cameron Sparr authored
-
Cameron Sparr authored
-
Cameron Sparr authored
-
Cameron Sparr authored
-
Cameron Sparr authored
-
Cameron Sparr authored
-