aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-05-06 00:31:40 +0200
committerLuca Deri <deri@ntop.org>2020-05-06 00:31:40 +0200
commit427002d14fbb4d42c30d38b5812e40142c96ff98 (patch)
tree90ca9b7933a6be937057bce54f62201025bbb8fe /src/include/ndpi_api.h
parent4148c5e065d32128eea17c0e228e372ad72eef82 (diff)
Reworked protocol handling chnging it is u_int16_t
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 46e8e603b..51be1ca35 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -803,12 +803,12 @@ extern "C" {
u_int32_t daddr,
ndpi_protocol *ret);
int ndpi_match_custom_category(struct ndpi_detection_module_struct *ndpi_struct,
- char *name, u_int name_len, unsigned long *id);
+ char *name, u_int name_len, u_int16_t *id);
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, u_int name_len, unsigned long *id);
+ char *name_or_ip, u_int name_len, u_int16_t *id);
int ndpi_set_detection_preferences(struct ndpi_detection_module_struct *ndpi_mod,
ndpi_detection_preference pref,
int value);
@@ -840,7 +840,7 @@ extern "C" {
* @return 0 in case of match, or -1 if no match, or -2 if an error occurred.
*
*/
- int ndpi_match_string_id(void *_automa, char *string_to_match, u_int match_len, unsigned long *id);
+ int ndpi_match_string_id(void *_automa, char *string_to_match, u_int match_len, u_int16_t *id);
/* Utility functions to set ndpi malloc/free/print wrappers */
void set_ndpi_malloc(void* (*__ndpi_malloc)(size_t size));