mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 00:40:17 +00:00
config: allow configuration of guessing algorithms
This commit is contained in:
parent
6c85f10cd5
commit
0712d496fe
18 changed files with 140 additions and 23 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue