#ping #icmp #raw-sockets #packets #echo #batch #measuring

massping

ICMP ping library for sending batches of ICMP echo request packets and measuring the roundtrip time

14 releases

0.3.6 Dec 16, 2024
0.3.5 Mar 20, 2023
0.3.4 Feb 13, 2023
0.3.3 Nov 2, 2022
0.1.1 Nov 19, 2021

#429 in Network programming

Download history 5/week @ 2024-09-18 3/week @ 2024-09-25 9/week @ 2024-12-04 136/week @ 2024-12-11 29/week @ 2024-12-18

174 downloads per month

MIT license

42KB
878 lines

massping

crates.io Documentation dependency status Rustc Version 1.70.0+ CI

Asynchronous ICMP ping library using Linux RAW sockets and the tokio runtime.

As this crate needs to use RAW sockets, it must either be run as root or permission must explicitly be set via sudo setcap cap_net_raw=+eip path/to/binary.

Features

  • strong: implements strong checking for the RTT. Disabling this feature makes the pinger a little bit faster, but opens you up to some servers, like those running pong, to faking the ping times.
  • stream: implements Stream for MeasureManyStream.

MSRV version policy

This project has a CI job to prevent accidental bumping of the MSRV. We might bump MSRV version at any time. If you require a lower MSRV please open an issue.

Dependencies

~5–15MB
~177K SLoC