aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2020-01-01 12:59:19 +0100
committerLuca <deri@ntop.org>2020-01-01 12:59:19 +0100
commitdaae1cc9b1ae6b7c6b4187003fabb2a6ffab44f0 (patch)
treec6e7918b0ea56416fa6ccdd1db3f1e04f217a2f5 /src/include/ndpi_api.h
parent499c80535b572a0746d83dcbe2eb232e31434bc4 (diff)
Reworked TLS dissection
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 669f59dda..c1d8845dc 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -507,6 +507,21 @@ extern "C" {
u_int16_t protoId);
/**
+ * Set hostname-based protocol
+ *
+ * @par ndpi_mod = the detection module
+ * @par flow = the flow to which this communication belongs to
+ * @par master_protocol = the master protocol for this flow
+ * @par name = the host name
+ * @par name_len = length of the host name
+ *
+ */
+ int ndpi_match_hostname_protocol(struct ndpi_detection_module_struct *ndpi_mod,
+ struct ndpi_flow_struct *flow,
+ u_int16_t master_protocol,
+ char *name, u_int name_len);
+
+ /**
* Get protocol category as string
*
* @par mod = the detection module