diff options
author | Luca Deri <deri@ntop.org> | 2020-01-05 18:25:44 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-01-05 18:25:44 +0100 |
commit | ef16591f3f9d2673dfacf1c715c2e10dcd1da248 (patch) | |
tree | babb2c57fec88d3942a2f13a911f569af33f9ac3 /src/include/ndpi_api.h | |
parent | 29dd45838da84bfa43da615d7624373392861751 (diff) | |
parent | 798bb6e2e113f10d9b710179553e4cef23222a61 (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index d03557aa6..5723494ba 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 |