diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-10-29 12:56:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 12:56:44 +0100 |
commit | 03fd155ae38b0b3b57f18a25e80abb68b169e326 (patch) | |
tree | 6e8faeb9723bff96e4857cbfda1d0a70c95c3ebd /src/include/ndpi_api.h | |
parent | 32b50f5aa4a199d6f63408b95dbf675689668418 (diff) |
IPv6: add support for custom categories (#2126)
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 35fbde85c..ee77b537a 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -810,6 +810,7 @@ extern "C" { * -1 else */ int ndpi_load_categories_file(struct ndpi_detection_module_struct *ndpi_str, const char* path, void *user_data); + int ndpi_load_categories_file2(struct ndpi_detection_module_struct *ndpi_str, FILE *fd, void *user_data); /** * Loads a file (separated by <cr>) of domain names associated with the specified category @@ -1028,11 +1029,17 @@ extern "C" { int ndpi_enable_loaded_categories(struct ndpi_detection_module_struct *ndpi_struct); void* ndpi_find_ipv4_category_userdata(struct ndpi_detection_module_struct *ndpi_str, u_int32_t saddr); + void* ndpi_find_ipv6_category_userdata(struct ndpi_detection_module_struct *ndpi_str, + struct in6_addr *saddr); int ndpi_fill_ip_protocol_category(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow, u_int32_t saddr, u_int32_t daddr, ndpi_protocol *ret); + int ndpi_fill_ip6_protocol_category(struct ndpi_detection_module_struct *ndpi_str, + struct ndpi_flow_struct *flow, + struct in6_addr *saddr, struct in6_addr *daddr, + ndpi_protocol *ret); int ndpi_match_custom_category(struct ndpi_detection_module_struct *ndpi_struct, char *name, u_int name_len, ndpi_protocol_category_t *id); void ndpi_fill_protocol_category(struct ndpi_detection_module_struct *ndpi_struct, |