From 5f05054c8a9c4e11a6e1d346036ceb9316500eb8 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Fri, 20 May 2022 11:56:22 +0200 Subject: [PATCH] Added priv_data Cherry pick of https://github.com/ntop/nDPI/commit/2560260a41172a07b6b272027f441ccda01622a5 --- src/include/ndpi_typedefs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index c5e98ec78..8113abdc6 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1352,6 +1352,13 @@ struct ndpi_flow_struct { /* NDPI_PROTOCOL_TINC */ u_int8_t tinc_state; struct tinc_cache_entry tinc_cache_entry; + + /* + Leave this field below at the end + The field below can be used by third + party dissectors for storing private data + */ + u_int8_t priv_data[16]; }; #define NDPI_PROTOCOL_DEFAULT_LEVEL 0