From f828dfc202b23f06e8613a9f6baf8d8b07580760 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 21 Jul 2018 16:17:12 +0200 Subject: Added comment about typedefs --- src/include/ndpi_typedefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index be9009e8a..40f35d5d3 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -828,6 +828,11 @@ typedef struct _ndpi_automa { } ndpi_automa; typedef struct ndpi_proto { + /* + Note + below we do not use ndpi_protocol_id_t as users can define their own + custom protocols and thus the typedef could be too short in size. + */ u_int16_t master_protocol /* e.g. HTTP */, app_protocol /* e.g. FaceBook */; ndpi_protocol_category_t category; } ndpi_protocol; -- cgit v1.2.3