aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-10-11 18:19:50 +0200
committerLuca Deri <deri@ntop.org>2019-10-11 18:19:50 +0200
commit6a38ede42be3006782267d6d1bfabc56f8caa738 (patch)
treefc52fef2c05f93b792367b13ad00cdd69ac9c5cc /example/reader_util.c
parent206ce0a317c63c61655b4b2dbce94b1dcdb8f965 (diff)
Updated nDPI API ndpi_ssl_version2str ndpi_get_l4_proto_name
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 4859d69e5..8848f6f05 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -966,6 +966,14 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
else if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UBNTAC2) {
snprintf(flow->info, sizeof(flow->info), "%s", flow->ndpi_flow->protos.ubntac2.version);
}
+ /* KERBEROS */
+ else if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_KERBEROS) {
+ if(flow->ndpi_flow->protos.kerberos.cname[0] != '\0') {
+ snprintf(flow->info, sizeof(flow->info), "%s (%s)",
+ flow->ndpi_flow->protos.kerberos.cname,
+ flow->ndpi_flow->protos.kerberos.realm);
+ }
+ }
/* HTTP */
else if(flow->detected_protocol.master_protocol == NDPI_PROTOCOL_HTTP) {
if(flow->ndpi_flow->http.url != NULL) {
@@ -1230,10 +1238,13 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
if(ndpi_flow && ndpi_flow->check_extra_packets)
flow->check_extra_packets = 1;
- if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UNKNOWN)
+ if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_UNKNOWN) {
+ u_int8_t proto_guessed;
+
flow->detected_protocol = ndpi_detection_giveup(workflow->ndpi_struct, flow->ndpi_flow,
- enable_protocol_guess);
-
+ enable_protocol_guess, &proto_guessed);
+ }
+
process_ndpi_collected_info(workflow, flow);
}
}