30 lines
1.3 KiB
Markdown
30 lines
1.3 KiB
Markdown
# 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
|
|
<img src="https://proxy.dandaedre.com/gitea/repo-avatars/20-98e285bfee0185a12e362142fd0a5010" alt="drawing" width="140" align="right"/>
|
|
|
|
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](LICENSE) for details.
|