aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2024-01-10 11:46:57 +0100
committerIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-01-18 10:21:24 +0100
commit0712d496fe63fd16f8e943a438c57f75d8cae880 (patch)
tree5102d4c3de8250cd16f52658de3f0dad55554c7c /python
parent6c85f10cd5a29346522ad647a38066f0cc44e5a7 (diff)
config: allow configuration of guessing algorithms
Diffstat (limited to 'python')
-rw-r--r--python/ndpi/ndpi.py3
-rw-r--r--python/ndpi/ndpi_build.py1
2 files changed, 1 insertions, 3 deletions
diff --git a/python/ndpi/ndpi.py b/python/ndpi/ndpi.py
index 743b7a805..32d6ea595 100644
--- a/python/ndpi/ndpi.py
+++ b/python/ndpi/ndpi.py
@@ -57,10 +57,9 @@ class NDPI(object):
app_protocol=p.app_protocol,
category=p.category)
- def giveup(self, flow, enable_guess=True):
+ def giveup(self, flow):
p = lib.ndpi_detection_giveup(self._detection_module,
flow.C,
- enable_guess,
ffi.new("uint8_t*", 0))
return ndpi_protocol(C=p,
master_protocol=p.master_protocol,
diff --git a/python/ndpi/ndpi_build.py b/python/ndpi/ndpi_build.py
index 6c07731f4..a2af30716 100644
--- a/python/ndpi/ndpi_build.py
+++ b/python/ndpi/ndpi_build.py
@@ -60,7 +60,6 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct
const struct ndpi_flow_input_info *input_info);
ndpi_protocol ndpi_detection_giveup(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow,
- u_int8_t enable_guess,
u_int8_t *protocol_was_guessed);
void ndpi_py_setup_detection_module(struct ndpi_detection_module_struct *mod);
struct ndpi_flow_struct * ndpi_py_initialize_flow(void);