diff options
author | emanuele-f <faranda@ntop.org> | 2020-03-25 14:00:47 +0100 |
---|---|---|
committer | emanuele-f <faranda@ntop.org> | 2020-03-25 14:00:47 +0100 |
commit | 9cf016c5f1f6141c9ae798bba8d5ab2930e417b9 (patch) | |
tree | 8ce8251852af2227e3cd01d2fb77deb0212499d7 | |
parent | 47a4507d9ee6bd224d3b76e22a0efdab0b949d9d (diff) |
Fix ndpi_get_api_version version truncation
-rw-r--r-- | src/include/ndpi_api.h.in | 2 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in index fb409c0eb..75a1bb5e2 100644 --- a/src/include/ndpi_api.h.in +++ b/src/include/ndpi_api.h.in @@ -852,7 +852,7 @@ extern "C" { //void * ndpi_malloc(size_t size); //void * ndpi_calloc(unsigned long count, size_t size); //void ndpi_free(void *ptr); - u_int8_t ndpi_get_api_version(void); + int ndpi_get_api_version(void); /* https://github.com/corelight/community-id-spec */ int ndpi_flowv4_flow_hash(u_int8_t l4_proto, u_int32_t src_ip, u_int32_t dst_ip, u_int16_t src_port, u_int16_t dst_port, diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 21491c5e7..8ab7ad520 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6535,7 +6535,7 @@ void NDPI_DUMP_BITMASK(NDPI_PROTOCOL_BITMASK a) { } #endif -u_int8_t ndpi_get_api_version() { +int ndpi_get_api_version() { return(NDPI_API_VERSION); } |