diff options
author | Luca Deri <deri@ntop.org> | 2020-09-25 10:39:33 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-09-25 10:39:33 +0200 |
commit | d0dbcf6dd69bd714ec5cabf0eaafa494036097ad (patch) | |
tree | 604a5192f9b7ef23095d4fd4f47bcb8f237dd772 /src/include | |
parent | 8413faf2ef9929dbe668ea318f871cc50c155548 (diff) |
Added back ndpi_check_flow_func (correct) prototype
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_api.h.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in index 313420378..14658962b 100644 --- a/src/include/ndpi_api.h.in +++ b/src/include/ndpi_api.h.in @@ -336,6 +336,23 @@ extern "C" { struct ndpi_flow_struct *flow); /** + * API call that is called internally by ndpi_detection_process_packet or by apps + * that want to avoid calling ndpi_detection_process_packet as they have already + * parsed the packet and thus want to avoid this. + * + * + * @par ndpi_struct = the detection module + * @par flow = the flow given for the detection module + * @par ndpi_selection_bitmask = the protocol selected bitmask + * @return number of protocol dissector that have been tried (0 = no more dissectors) + * + */ + u_int32_t ndpi_check_flow_func(struct ndpi_detection_module_struct *ndpi_struct, + struct ndpi_flow_struct *flow, + NDPI_SELECTION_BITMASK_PROTOCOL_SIZE *ndpi_selection_packet); + + + /** * Query the pointer to the layer 4 packet * * @par l3 = pointer to the layer 3 data |