diff options
author | Luca Deri <deri@ntop.org> | 2019-09-30 23:23:52 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-09-30 23:23:52 +0200 |
commit | a62cf102331653119b83e87d2efdef6d11cefcd1 (patch) | |
tree | 6cb14734fbb78c555ff62da7a5f0ba6d4e5fca11 | |
parent | 1361c8fbdf4f4a33db7503dce5c6cd232a7c3fbf (diff) |
Added SSH handling in ndpi_extra_dissection_possible()
-rw-r--r-- | src/lib/ndpi_main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index a4a69eab8..feddae6e2 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -6332,7 +6332,6 @@ int ndpi_flowv6_flow_hash(u_int8_t l4_proto, struct ndpi_in6_addr *src_ip, struc */ u_int8_t ndpi_extra_dissection_possible(struct ndpi_detection_module_struct *ndpi_str, struct ndpi_flow_struct *flow) { - #if 0 printf("[DEBUG] %s(%u.%u)\n", __FUNCTION__, flow->detected_protocol_stack[0], @@ -6357,6 +6356,12 @@ u_int8_t ndpi_extra_dissection_possible(struct ndpi_detection_module_struct *ndp && (flow->host_server_name[0] == '\0')) return(1); break; + + case NDPI_PROTOCOL_SSH: + if((flow->protos.ssh.hassh_client[0] == '\0') + || (flow->protos.ssh.hassh_server[0] == '\0')) + return(1); + break; } return(0); |