|
|
||
|---|---|---|
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
README.md
rping
rping is a simple implementation of the Internet Control Message Protocol (ICMP) ping utility. It sends a ping request to a specified IP address and prints the response time if a reply is received.
Usage
To use rping, run the following command:
cargo run --dest <destination IP address> [--request/-r <ping request>] [--data/-d <data>] [--payload/-p <payload>]
The --dest argument is required and specifies the destination IP address to send the ping request to. The --request, --data, and --payload arguments are optional and allow you to specify the ping request, data, and payload values, respectively. If these arguments are not provided, default values will be used.
Example
To send a ping request to the IP address 192.0.2.1 with the default values, run the following command:
cargo run --dest 192.0.2.1
To send a ping request to the same IP address with a custom ping request, data, and payload value, run the following command:
cargo run --dest 192.0.2.1 --request 0x1234 --data 0x5678 --payload "hello world"
License
This project is licensed under the MIT License. See LICENSE for details.