Expose ndpi_fill_ip_protocol_category api to handle ICMP flows category

This commit is contained in:
emanuele-f
2018-12-12 11:31:07 +01:00
parent c1d31bb409
commit d2b2aba6e8
2 changed files with 24 additions and 7 deletions
+3
View File
@@ -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);