aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ndpi_main.h')
-rw-r--r--src/include/ndpi_main.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/include/ndpi_main.h b/src/include/ndpi_main.h
index 6bbeb320c..d589eb04d 100644
--- a/src/include/ndpi_main.h
+++ b/src/include/ndpi_main.h
@@ -1,7 +1,7 @@
/*
* ndpi_main.h
*
- * Copyright (C) 2011-22 - ntop.org
+ * Copyright (C) 2011-25 - ntop.org
*
* This file is part of nDPI, an open source deep packet inspection
* library based on the OpenDPI and PACE technology by ipoque GmbH
@@ -46,8 +46,6 @@ extern "C" {
void ndpi_twalk(const void *, void (*)(const void *, ndpi_VISIT, int, void*), void *user_data);
void ndpi_tdestroy(void *vrootp, void (*freefct)(void *));
- int NDPI_BITMASK_COMPARE(NDPI_PROTOCOL_BITMASK a, NDPI_PROTOCOL_BITMASK b);
-
u_int16_t ntohs_ndpi_bytestream_to_number(const u_int8_t * str,
u_int16_t max_chars_to_read,
u_int16_t * bytes_read);
@@ -85,17 +83,10 @@ extern "C" {
int ndpi_handle_ipv6_extension_headers(u_int16_t l3len,
const u_int8_t ** l4ptr, u_int16_t * l4len,
u_int8_t * nxt_hdr);
-
- void ndpi_set_proto_defaults(struct ndpi_detection_module_struct *ndpi_str,
- u_int8_t is_cleartext, u_int8_t is_app_protocol,
- ndpi_protocol_breed_t breed,
- u_int16_t protoId, char *protoName,
- ndpi_protocol_category_t protoCategory,
- ndpi_port_range *tcpDefPorts,
- ndpi_port_range *udpDefPorts);
+
void ndpi_set_risk(struct ndpi_detection_module_struct *ndpi_str, struct ndpi_flow_struct *flow,
ndpi_risk_enum r, char *risk_message);
- void ndpi_unset_risk(struct ndpi_flow_struct *flow, ndpi_risk_enum r);
+ void ndpi_unset_risk(struct ndpi_detection_module_struct *ndpi_str, struct ndpi_flow_struct *flow, ndpi_risk_enum r);
int ndpi_isset_risk(struct ndpi_flow_struct *flow, ndpi_risk_enum r);
int ndpi_is_printable_buffer(u_int8_t const * const buf, size_t len);
int ndpi_normalize_printable_string(char * const str, size_t len);