diff options
author | emanuele-f <black.silver@hotmail.it> | 2019-02-12 17:28:30 +0100 |
---|---|---|
committer | emanuele-f <black.silver@hotmail.it> | 2019-02-12 17:28:30 +0100 |
commit | a035763afd3a2eb3d959d67152ea309cdb16d448 (patch) | |
tree | af4f303b9556b8151b607fa2dca486cf9193ed7a /src/include/ndpi_api.h | |
parent | 0c4fada265b7932688c0bec6fa8229b9907f5831 (diff) |
Change ndpi_fill_ip_protocol_category to pass IPs explicitly
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index e09c91c8e..386d306fd 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -740,8 +740,11 @@ extern "C" { 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, + u_int32_t saddr, + u_int32_t daddr, ndpi_protocol *ret); + int ndpi_match_custom_category(struct ndpi_detection_module_struct *ndpi_struct, + char *name, unsigned long *id); void ndpi_fill_protocol_category(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow, ndpi_protocol *ret); |