From 218bd27195e1557c3a7312ee069318ccb67f98c3 Mon Sep 17 00:00:00 2001 From: faraphel Date: Sun, 22 Dec 2024 23:28:19 +0100 Subject: [PATCH 1/3] fixed missing semicolon --- source/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index b0f4002..600b5d9 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -57,7 +57,7 @@ void packet_wol_handler( return; } - std::cerr << "Found no matching node." << std::endl + std::cerr << "Found no matching node." << std::endl; } int main() { From 2fa6bd421207f6e3dbf1151e5f733dafcc8c324a Mon Sep 17 00:00:00 2001 From: faraphel Date: Sun, 22 Dec 2024 23:28:47 +0100 Subject: [PATCH 2/3] use an earlier version of C++ for a better compatibility --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e0b73e1..c613f69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ -cmake_minimum_required(VERSION 3.29) +cmake_minimum_required(VERSION 3.16) project(gns3_wol_emulator) -set(CMAKE_CXX_STANDARD 23) +set(CMAKE_CXX_STANDARD 20) # Dependencies add_subdirectory(external/json) From 9f96f92f32f54b84f6809f991a38eb11c0f37350 Mon Sep 17 00:00:00 2001 From: faraphel Date: Sun, 22 Dec 2024 23:37:48 +0100 Subject: [PATCH 3/3] improved installation instruction --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5d5545..75e261a 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,30 @@ If found, it will wake up the destination machine based on its MAC address. ## Dependencies Debian : -``` +```bash +# Build dependencies +sudo apt install build-essential ninja-build cmake +# Application dependencies sudo apt install libpcap-dev ``` +## Downloads + +```bash +git clone --recurse-submodules https://git.isriupjv.fr/ISRI/gns3-wol-emulator +``` + ## Build +```bash +cmake -S ./ -B ./build/ -G "Ninja" +cd ./build/ +ninja ``` -cmake ... + +## Run + +```bash +# Root required for sniffing the network +sudo ./gns3_wol_emulator ``` \ No newline at end of file