From 1a62f4c799186244da0a2923d1db79f8e4e3c10b Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 22 Jun 2020 01:02:54 +0200 Subject: Added ndpi_bin_XXX API Added packet lenght distribution bins --- example/reader_util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'example/reader_util.h') diff --git a/example/reader_util.h b/example/reader_util.h index bcfc1b5b6..8298e2ef8 100644 --- a/example/reader_util.h +++ b/example/reader_util.h @@ -226,6 +226,13 @@ typedef struct ndpi_flow_info { struct ndpi_entropy entropy; struct ndpi_entropy last_entropy; + + /* Payload lenght bins */ +#ifdef DIRECTION_BINS + struct ndpi_bin payload_len_bin_src2dst, payload_len_bin_dst2src; +#else + struct ndpi_bin payload_len_bin; +#endif } ndpi_flow_info_t; -- cgit v1.2.3