diff options
author | Luca Deri <deri@ntop.org> | 2025-03-31 12:22:11 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2025-03-31 12:22:11 +0200 |
commit | b839875ef486372f7b8e919db083b289cdc6f4f5 (patch) | |
tree | 73fac91f8c0e044bd53b9ac147723817db714358 /src/lib/ndpi_utils.c | |
parent | 0d38bd167e4a2ed0be67d214685c9c251978eef8 (diff) |
OS fingerprint code cleanup
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 804a29c6f..fc171d5e7 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -4209,14 +4209,16 @@ char* ndpi_quick_decrypt(const char *encrypted_msg, /* ************************************************************** */ -const char* ndpi_print_os_hint(u_int8_t os_hint) { +const char* ndpi_print_os_hint(ndpi_os os_hint) { switch(os_hint) { - case os_hint_windows: return("Windows"); - case os_hint_macos: return("macOS"); - case os_hint_ios_ipad_os: return("iOS/iPad"); - case os_hint_android: return("Android"); - case os_hint_linux: return("Linux"); - case os_hint_freebsd: return("FreeBSD"); + case ndpi_os_windows: return("Windows"); + case ndpi_os_macos: return("macOS"); + case ndpi_os_ios_ipad_os: return("iOS/iPad"); + case ndpi_os_android: return("Android"); + case ndpi_os_linux: return("Linux"); + case ndpi_os_freebsd: return("FreeBSD"); + default: + break; } return("Unknown"); |