aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.h
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2024-10-07 20:06:45 +0200
committerLuca Deri <deri@ntop.org>2024-10-07 20:08:53 +0200
commit55fa92490af593358a0b13ad1708ee9b14eec128 (patch)
tree519b80f2f48583efbd8090ca9ad7e48ae347f99c /example/reader_util.h
parent5475625c463a0c9066986db3263fba4f076ea69c (diff)
Implemented (disabled by default) DNS host cache. You can set the cache size as follows:
ndpiReader --cfg=dpi.address_cache_size,1000 -i <pcap>.pcap In the above example the cache has up to 1000 entries. In jcase ndpiReader exports data in JSON, the cache hostname (if found) is exported in the field server_hostname
Diffstat (limited to 'example/reader_util.h')
-rw-r--r--example/reader_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/reader_util.h b/example/reader_util.h
index ef15053cd..956bb1955 100644
--- a/example/reader_util.h
+++ b/example/reader_util.h
@@ -259,6 +259,7 @@ typedef struct ndpi_flow_info {
ndpi_serializer ndpi_flow_serializer;
char host_server_name[80]; /* Hostname/SNI */
+ char *server_hostname;
char *bittorent_hash;
char *dhcp_fingerprint;
char *dhcp_class_ident;