summaryrefslogtreecommitdiff
path: root/nDPId.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-09-26 00:35:37 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-09-26 00:35:37 +0200
commit5b9965ce63e1874ed18cc6615f1c449d875d12a3 (patch)
tree9840c66d6e43941da1bf502798d31d875f34eb34 /nDPId.c
parent6c0ac8b0457dd56d99f55ccc87e3c9495ee6f412 (diff)
Added host_server_name length to hash to send a detection update if length changed (hacky).
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPId.c')
-rw-r--r--nDPId.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nDPId.c b/nDPId.c
index b3bf7c5dc..7eabcc951 100644
--- a/nDPId.c
+++ b/nDPId.c
@@ -1252,6 +1252,8 @@ static uint32_t calculate_ndpi_flow_struct_hash(struct ndpi_flow_struct const *
hash += ndpi_flow->src->detected_protocol_bitmask.fds_bits[i];
hash += ndpi_flow->dst->detected_protocol_bitmask.fds_bits[i];
}
+ hash += strnlen((const char *)ndpi_flow->host_server_name, sizeof(ndpi_flow->host_server_name)); // ugly
+
return hash;
}