From cdf197ccfeedad29ceeca9b38a188dcdef6b7c06 Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Wed, 10 Oct 2018 13:29:49 +0200 Subject: Add function to search host in custom categories --- src/include/ndpi_api.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/ndpi_api.h') diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 0409cb8c4..d1e9148b2 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -738,6 +738,8 @@ extern "C" { void ndpi_fill_protocol_category(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow, ndpi_protocol *ret); + int ndpi_get_custom_category_match(struct ndpi_detection_module_struct *ndpi_struct, + char *name_or_ip, unsigned long *id); int ndpi_set_detection_preferences(struct ndpi_detection_module_struct *ndpi_mod, ndpi_detection_preference pref, int value); -- cgit v1.2.3