aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2022-09-04 19:19:05 +0200
committerGitHub <noreply@github.com>2022-09-04 19:19:05 +0200
commitb7c103080493f93b2594b878656076d238211ba0 (patch)
tree8505f951b70e5a341ad1a20536f9fc9c0a717300 /src/include
parentb9cb3917564404367f35f54eafaaab1e28ce266f (diff)
Fix broken ndpi_timeval_to_(milli|micro)seconds (>UINT_MAX). (#1720)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com> Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_classify.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ndpi_classify.h b/src/include/ndpi_classify.h
index ab9212832..3baeb1e13 100644
--- a/src/include/ndpi_classify.h
+++ b/src/include/ndpi_classify.h
@@ -85,8 +85,8 @@ unsigned int ndpi_timer_eq(const pkt_timeval *a, const pkt_timeval *b);
unsigned int ndpi_timer_lt(const pkt_timeval *a, const pkt_timeval *b);
void ndpi_timer_sub(const pkt_timeval *a, const pkt_timeval *b, pkt_timeval *result);
void ndpi_timer_clear(pkt_timeval *a);
-unsigned int ndpi_timeval_to_milliseconds(pkt_timeval ts);
-unsigned int ndpi_timeval_to_microseconds(pkt_timeval ts);
+u_int64_t ndpi_timeval_to_milliseconds(pkt_timeval ts);
+u_int64_t ndpi_timeval_to_microseconds(pkt_timeval ts);
void ndpi_log_timestamp(char *log_ts, uint32_t log_ts_len);
#endif /* NDPI_CLASSIFY_H */