aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2018-07-21 16:17:12 +0200
committerLuca <deri@ntop.org>2018-07-21 16:17:12 +0200
commitf828dfc202b23f06e8613a9f6baf8d8b07580760 (patch)
treec3183f279d5b26ff1859b5e440f29afc1b7ea887 /src
parent591158bb9290a06fe96d52d7c0162c853cd90ec6 (diff)
Added comment about typedefs
Diffstat (limited to 'src')
-rw-r--r--src/include/ndpi_typedefs.h5
1 files changed, 5 insertions, 0 deletions
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;