aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authoremanuele-f <black.silver@hotmail.it>2018-12-12 11:31:07 +0100
committeremanuele-f <black.silver@hotmail.it>2018-12-12 11:31:07 +0100
commitd2b2aba6e86b78bd9a9abdf97b51b643da1ef0dd (patch)
treebce608152f150627d0530bd78937ba1bf0069045 /src/include/ndpi_api.h
parentc1d31bb4096e3a8d49babba871684d26195726bc (diff)
Expose ndpi_fill_ip_protocol_category api to handle ICMP flows category
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 5bee25f5b..e57f3a568 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -739,6 +739,9 @@ extern "C" {
int ndpi_load_hostname_category(struct ndpi_detection_module_struct *ndpi_struct,
char *name, ndpi_protocol_category_t category);
int ndpi_enable_loaded_categories(struct ndpi_detection_module_struct *ndpi_struct);
+ int ndpi_fill_ip_protocol_category(struct ndpi_detection_module_struct *ndpi_struct,
+ const struct ndpi_iphdr *iph,
+ ndpi_protocol *ret);
void ndpi_fill_protocol_category(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow,
ndpi_protocol *ret);