diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-09-26 00:35:37 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-09-26 00:35:37 +0200 |
commit | 5b9965ce63e1874ed18cc6615f1c449d875d12a3 (patch) | |
tree | 9840c66d6e43941da1bf502798d31d875f34eb34 /nDPId.c | |
parent | 6c0ac8b0457dd56d99f55ccc87e3c9495ee6f412 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |