diff options
author | Marc <marc@malloc.me> | 2022-08-20 16:10:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 16:10:00 +0100 |
commit | 3be534eb2b75f4c3376bf61014c7a06d719cb9e3 (patch) | |
tree | bb15b431693890c51adb13784ad8b73c8c76bfde /utils | |
parent | ec21e1ee1c2c475730b4b22a9f603e4b0ae7fb84 (diff) | |
download | libwifi-3be534eb2b75f4c3376bf61014c7a06d719cb9e3.tar.gz libwifi-3be534eb2b75f4c3376bf61014c7a06d719cb9e3.tar.bz2 libwifi-3be534eb2b75f4c3376bf61014c7a06d719cb9e3.zip |
Add macOS support (#8)
Add macOS build support
Diffstat (limited to 'utils')
-rw-r--r-- | utils/CMakeLists.txt | 3 | ||||
-rw-r--r-- | utils/src/test_parsing.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index bdf7227..f3c9824 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt | |||
@@ -7,6 +7,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED True) | |||
7 | 7 | ||
8 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0") | 8 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0") |
9 | 9 | ||
10 | link_directories(AFTER "/usr/local/lib") | ||
11 | include_directories(AFTER "/usr/local/include") | ||
12 | |||
10 | add_executable(test_misc src/helpers.c src/test_misc.c) | 13 | add_executable(test_misc src/helpers.c src/test_misc.c) |
11 | add_executable(test_generation src/helpers.c src/test_generation.c) | 14 | add_executable(test_generation src/helpers.c src/test_generation.c) |
12 | add_executable(test_parsing src/helpers.c src/test_parsing.c) | 15 | add_executable(test_parsing src/helpers.c src/test_parsing.c) |
diff --git a/utils/src/test_parsing.c b/utils/src/test_parsing.c index 339816e..b9f9dbc 100644 --- a/utils/src/test_parsing.c +++ b/utils/src/test_parsing.c | |||
@@ -370,7 +370,7 @@ void parse_data_eapol(struct libwifi_frame frame, unsigned char *args, const str | |||
370 | printf("EAPOL: Descriptor: %d\n", data.descriptor); | 370 | printf("EAPOL: Descriptor: %d\n", data.descriptor); |
371 | printf("EAPOL: Key Info: Information: 0x%04x\n", data.key_info.information); | 371 | printf("EAPOL: Key Info: Information: 0x%04x\n", data.key_info.information); |
372 | printf("EAPOL: Key Info: Key Length: %d\n", data.key_info.key_length); | 372 | printf("EAPOL: Key Info: Key Length: %d\n", data.key_info.key_length); |
373 | printf("EAPOL: Key Info: Replay Counter: %lu\n", data.key_info.replay_counter); | 373 | printf("EAPOL: Key Info: Replay Counter: %llu\n", data.key_info.replay_counter); |
374 | printf("EAPOL: Key Info: Nonce: "); | 374 | printf("EAPOL: Key Info: Nonce: "); |
375 | for (size_t i = 0; i < sizeof(data.key_info.nonce); ++i) printf("%02x ", data.key_info.nonce[i]); | 375 | for (size_t i = 0; i < sizeof(data.key_info.nonce); ++i) printf("%02x ", data.key_info.nonce[i]); |
376 | printf("\n"); | 376 | printf("\n"); |