update readme

This commit is contained in:
2026-07-09 09:53:20 +05:30
parent d3012165bc
commit 0cd38d041e
+3 -31
View File
@@ -2,33 +2,11 @@
Broadcast Wake on Lan (WoL) magic packet to network devices in the local network. Broadcast Wake on Lan (WoL) magic packet to network devices in the local network.
## Installation
Install [cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)
```bash
cargo install --git <thisRepoUrl>
```
## Usage
```
woly aa:bb:cc:dd:ee:ff
```
or define a nickname in `woly.conf` as
```woly.conf
idly=aa:bb:cc:dd:ee:ff
```
```
woly idly
```
## Magic Packet ## Magic Packet
Magic packet is constructed as follows If MAC = aa:bb:cc:dd:ee:ff
UDP packet is constructed as follows, and sent to 255.255.255.255:9
FF x 6; Mac Address x 16 FF x 6; Mac Address x 16
@@ -52,9 +30,3 @@ AA BB CC DD EE FF
AA BB CC DD EE FF AA BB CC DD EE FF
AA BB CC DD EE FF AA BB CC DD EE FF
``` ```
### Target Destination
The magic packet shall be sent to limited broadcast IP - `255.255.255.255` and the Discard Protocol Port `9`.
While sending it to targeted IP, for eg. 192.168.0.2 bound to desired mac address of the device might work, it is not reliable as sometimes the ARP cache will not be updated by router due to device being in low power mode and will drop this packet.