aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2022-10-04 11:18:09 +0200
committerLuca <deri@ntop.org>2022-10-04 11:26:44 +0200
commitde59eb823724cea1f197f8012f41e6cb159b2a56 (patch)
treefa23cd6bf7b3ec31708d550b5f94db4a643ce539 /src/include
parent66a8010ef7337aa734e430c40c690f4470384f62 (diff)
Added the ability to track the payload via -E and via the new option 'ndpi_track_flow_payload'
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_typedefs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h
index 8d7f1e864..a8b270b6d 100644
--- a/src/include/ndpi_typedefs.h
+++ b/src/include/ndpi_typedefs.h
@@ -650,7 +650,6 @@ struct ndpi_lru_cache {
/* ************************************************** */
struct ndpi_flow_tcp_struct {
-
/* NDPI_PROTOCOL_MAIL_SMTP */
/* NDPI_PROTOCOL_MAIL_POP */
/* NDPI_PROTOCOL_MAIL_IMAP */
@@ -1242,6 +1241,8 @@ struct ndpi_detection_module_struct {
u_int8_t num_nbpf_custom_proto;
nbpf_filter nbpf_custom_proto[MAX_NBPF_CUSTOM_PROTO];
#endif
+
+ u_int16_t max_payload_track_len;
};
#endif /* NDPI_LIB_COMPILATION */
@@ -1554,6 +1555,10 @@ struct ndpi_flow_struct {
/* NDPI_PROTOCOL_TINC */
u_int8_t tinc_state;
+ /* Flow payload */
+ u_int16_t flow_payload_len;
+ char *flow_payload;
+
/*
Leave this field below at the end
The field below can be used by third
@@ -1619,6 +1624,7 @@ typedef enum {
ndpi_dont_load_icloud_private_relay_list = (1 << 13),
ndpi_dont_init_risk_ptree = (1 << 14),
ndpi_dont_load_cachefly_list = (1 << 15),
+ ndpi_track_flow_payload = (1 << 16),
} ndpi_prefs;
typedef struct {