{"id":50404873,"url":"https://github.com/simonpainter/uping","last_synced_at":"2026-05-31T01:03:19.429Z","repository":{"id":356782848,"uuid":"1234049429","full_name":"simonpainter/uping","owner":"simonpainter","description":"Microsecond-precision ICMP ping for macOS and Linux","archived":false,"fork":false,"pushed_at":"2026-05-09T19:06:40.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T19:27:32.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonpainter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T17:25:10.000Z","updated_at":"2026-05-09T19:06:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/simonpainter/uping","commit_stats":null,"previous_names":["simonpainter/uping"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/simonpainter/uping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fuping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fuping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fuping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fuping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonpainter","download_url":"https://codeload.github.com/simonpainter/uping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fuping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33715214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-05-31T01:03:17.431Z","updated_at":"2026-05-31T01:03:19.420Z","avatar_url":"https://github.com/simonpainter.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uping\n\nMicrosecond-precision ICMP ping for macOS and Linux.\n\nUses `clock_gettime(CLOCK_MONOTONIC)` for sub-millisecond RTT measurement and reports results in whole microseconds. Prefers `SOCK_RAW` for accurate timing, falling back to `SOCK_DGRAM` when privileges are unavailable. Output is colour-coded by RTT.\n\n## Usage\n\n```bash\n./uping 1.1.1.1\n./uping -c 10 -i 0.5 google.com\n./uping -W 1 -6 ipv6.google.com\n```\n\n```\nUPING google.com (142.251.151.119): ICMPv4, timeout 2.0s\nseq=1    12054µs  from 142.251.151.119\nseq=2    12229µs  from 142.251.151.119\nseq=3    11986µs  from 142.251.151.119\n^C\n--- google.com uping statistics ---\n3 packets transmitted, 3 received, 0.0% loss\nrtt min/avg/max = 11986/12089.7/12229 µs\n```\n\n## Options\n\n| Flag | Description |\n|------|-------------|\n| `-c COUNT` | Stop after COUNT pings (default: run until Ctrl+C) |\n| `-i INTERVAL` | Seconds between pings, may be fractional (default: 1) |\n| `-W TIMEOUT` | Per-ping timeout in seconds (default: 2) |\n| `-4` | Force IPv4 |\n| `-6` | Force IPv6 |\n| `-n` | Disable colour output |\n\nRTT colour coding: green \u003c 1 ms, yellow \u003c 10 ms, red \u003e= 10 ms.\n\n## Build\n\n```bash\nmake\n```\n\nRequires `cc` / `gcc` / `clang` and a standard C library. No other dependencies.\n\n## Install\n\n```bash\nsudo make install   # installs to /usr/local/bin/uping\n```\n\nOn **Linux**, `sudo make install` also runs `setcap cap_net_raw+ep` on the binary so it can be used without `sudo` at runtime. Requires `libcap2-bin` (Debian/Ubuntu) or `libcap` (Fedora/RHEL):\n\n```bash\nsudo apt install libcap2-bin   # Debian/Ubuntu\nsudo dnf install libcap        # Fedora/RHEL\n```\n\nIf `setcap` is unavailable you can run `sudo uping` directly, or allow unprivileged ICMP system-wide:\n\n```bash\nsudo sysctl -w net.ipv4.ping_group_range=\"0 2147483647\"\n```\n\nOn **macOS**, `SOCK_RAW` requires root for accurate timing. Without root, uping falls back to `SOCK_DGRAM` which adds ~30 ms of kernel overhead to every reading. To run without `sudo`, apply setuid-root after installing (the same mechanism as the system `ping`):\n\n```bash\nsudo chown root:wheel /usr/local/bin/uping\nsudo chmod u+s /usr/local/bin/uping\n```\n\n## Uninstall\n\n```bash\nsudo make uninstall\n```\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development and pull request guidance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonpainter%2Fuping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonpainter%2Fuping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonpainter%2Fuping/lists"}