Compare commits
3 commits
811f80c92c
...
9f96f92f32
Author | SHA1 | Date | |
---|---|---|---|
9f96f92f32 | |||
2fa6bd4212 | |||
218bd27195 |
3 changed files with 23 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.29)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
project(gns3_wol_emulator)
|
project(gns3_wol_emulator)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
add_subdirectory(external/json)
|
add_subdirectory(external/json)
|
||||||
|
|
22
README.md
22
README.md
|
@ -8,12 +8,30 @@ If found, it will wake up the destination machine based on its MAC address.
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
Debian :
|
Debian :
|
||||||
```
|
```bash
|
||||||
|
# Build dependencies
|
||||||
|
sudo apt install build-essential ninja-build cmake
|
||||||
|
# Application dependencies
|
||||||
sudo apt install libpcap-dev
|
sudo apt install libpcap-dev
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Downloads
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone --recurse-submodules https://git.isriupjv.fr/ISRI/gns3-wol-emulator
|
||||||
|
```
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cmake -S ./ -B ./build/ -G "Ninja"
|
||||||
|
cd ./build/
|
||||||
|
ninja
|
||||||
```
|
```
|
||||||
cmake ...
|
|
||||||
|
## Run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Root required for sniffing the network
|
||||||
|
sudo ./gns3_wol_emulator
|
||||||
```
|
```
|
|
@ -57,7 +57,7 @@ void packet_wol_handler(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cerr << "Found no matching node." << std::endl
|
std::cerr << "Found no matching node." << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue