ping: icmp echo requests
This library provides functions that have similar behavior as the unix command-line utility ping. In particular, both emit ICMP echo requests and wait for responses. This library uses a haskell implementation of ICMP rather than invoking `binping`. This avoids the costly process of starting a child process. Additionally, there are greater opportunities for reusing sockets. The cost of this is that the user must ensure that one of these is true:
The kernel parameter
net.ipv4.ping_group_rangehas been configured to allow pings to all IP addresses. (preferred solution)The process is running with the the
CAP_NET_RAWcapability.The process is running as root. (worst solution)
[Skip to Readme]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| debug | Print debug output | Disabled |
| application | Build CLI application that exposes ping-like functions as subcommands | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- ping-0.1.0.4.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5 (info) |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.11.1 && <5), cpu (>=0.1.2), ip (>=1.5), optparse-applicative (>=0.14.3.0 && <0.15), ping, posix-api (>=0.4 && <0.5), primitive (>=0.7 && <0.8), primitive-addr (>=0.1 && <0.2), primitive-containers (>=0.3.1), stm (>=2.5), text (>=1.2.3.1), transformers (>=0.5.5) [details] |
| License | BSD-3-Clause |
| Copyright | 2019 Andrew Martin |
| Author | Andrew Martin |
| Maintainer | andrew.thaddeus@gmail.com |
| Uploaded | by andrewthad at 2023-01-03T20:10:57Z |
| Category | Network |
| Home page | https://github.com/andrewthad/ping |
| Distributions | |
| Executables | multiping |
| Downloads | 1937 total (14 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs not available [build log] All reported builds failed as of 2023-01-03 [all 2 reports] |