{"id":26063260,"url":"https://github.com/edgio/icmpengine","last_synced_at":"2026-03-10T10:02:37.566Z","repository":{"id":57622367,"uuid":"391435061","full_name":"Edgio/icmpengine","owner":"Edgio","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-23T03:09:03.000Z","size":1029,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-15T07:22:28.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Edgio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-31T18:29:05.000Z","updated_at":"2023-12-05T23:08:05.000Z","dependencies_parsed_at":"2022-09-26T20:10:21.547Z","dependency_job_id":null,"html_url":"https://github.com/Edgio/icmpengine","commit_stats":null,"previous_names":["edgecast/icmpengine","edgioinc/icmpengine"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Edgio/icmpengine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Ficmpengine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Ficmpengine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Ficmpengine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Ficmpengine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Edgio","download_url":"https://codeload.github.com/Edgio/icmpengine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Edgio%2Ficmpengine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30329697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-08T16:34:27.118Z","updated_at":"2026-03-10T10:02:37.460Z","avatar_url":"https://github.com/Edgio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ICMPEngine\n\nICMPengine is a small library for sending non-privilged ICMP echo requests and recieving replies.\n\nKey features include:\n- Single IPv4 socket, and single IPv6 socket\n- Does not wait for timeouts on packets, instead it can proceed to send more\n- Single expiry timer\n- - Uses double linked list to track the soonest single expiry timer, rather than having many timers\n- - Currently because it uses [https://golang.org/pkg/container/list](https://golang.org/pkg/container/list) all the expiry timers need to be the duration ( to allow inserting at the back of the list )\n- - ( Should move to [https://golang.org/pkg/container/heap/](https://golang.org/pkg/container/heap/) )\n- - ( Currently there is a single Expirer and linked list, but this could be sperated per protocol if required )\n- Leverages the native golang [https://golang.org/x/net/icmp](https://golang.org/x/net/icmp) library\n- IPPROTO_ICMP sockets which are NonPrivilegedPing [https://lwn.net/Articles/422330/](https://lwn.net/Articles/422330/)\n- Uses IP type [https://pkg.go.dev/inet.af/netaddr](https://pkg.go.dev/inet.af/netaddr), see also: [https://tailscale.com/blog/netaddr-new-ip-type-for-go/](https://tailscale.com/blog/netaddr-new-ip-type-for-go/)\n- [https://golang.org/pkg/sync/#Pool](https://golang.org/pkg/sync/#Pool) is used for the receive buffers, although this may not be required\n- Please note packet size and DSCP bits are NOT currently supported\n- Performance testing across a low latency LAN showed ICMPengine can perform at least 60k pings in \u003c15s\n\nAlthough this is designed to be used as a library, a basic implmentation is demonstrated here:\n[./cmd/icmpengine/icmpengine.go](./cmd/icmpengine/icmpengine.go)\n\n```\nsudo sysctl -w net.ipv4.ping_group_range=\"0 2147483647\"\n```\n\n\u003cimg src=\"./icmpengine.png\" alt=\"xtcp diagram\" width=\"75%\" height=\"75%\"/\u003e\n\n## Dependency licenses\n\nDependancy                                                     | License         | Link\n---                                                            | ---             | ---\nGolang                                                         | BSD             | https://golang.org/LICENSE\ngithub.com/go-cmd/cmd v1.3.0                                   | MIT             | https://github.com/go-cmd/cmd/blob/master/LICENSE\ngithub.com/go-kit/kit v0.10.0                                  | MIT             | https://github.com/go-kit/kit/blob/master/LICENSE\ngithub.com/hashicorp/go-hclog v0.16.2                          | MIT             | https://github.com/hashicorp/go-hclog/blob/master/LICENSE\ngithub.com/pkg/profile v1.6.0                                  | BSD             | https://github.com/pkg/profile/blob/master/LICENSE\ngithub.com/prometheus/client_golang v1.11.0                    | Apache 2.0      | https://github.com/prometheus/client_golang/blob/master/LICENSE\ngolang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985            | BSD             | https://golang.org/LICENSE\ninet.af/netaddr v0.0.0-20210721214506-ce7a8ad02cc1             | BSD-3           | https://pkg.go.dev/inet.af/netaddr?tab=licenses\n\n```\ndas@das-dell5580:~/go/src/gitlab.edgio.net/dseddon/icmpengine$ cat go.mod \nmodule gitlab.edgio.net/dseddon/icmpengine\n\ngo 1.16\n\nrequire (\n\tgithub.com/go-cmd/cmd v1.3.0\n\tgithub.com/go-kit/kit v0.10.0 // indirect\n\tgithub.com/hashicorp/go-hclog v0.16.2\n\tgithub.com/pkg/profile v1.6.0\n\tgithub.com/prometheus/client_golang v1.11.0\n\tgolang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985\n\tinet.af/netaddr v0.0.0-20210721214506-ce7a8ad02cc1\n)\n```\n\nHow to tag\n```\ngit tag\ngit tag -a v1.0.1 -m \"v1.0.1\"\ngit push origin --tags\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgio%2Ficmpengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgio%2Ficmpengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgio%2Ficmpengine/lists"}