diff options
author | Luca <deri@ntop.org> | 2015-07-01 18:12:47 +0200 |
---|---|---|
committer | Luca <deri@ntop.org> | 2015-07-01 18:12:47 +0200 |
commit | 7f807b81feaae91fca09210d10ed12ee9cf89257 (patch) | |
tree | 7e9fe132a90470577ac6ee93fb6ae1469837a5e7 /src/include/ndpi_api.h | |
parent | 60884f9047882863d27f7e8f5fb760897c599800 (diff) |
Added support for subprotocols
Modified ndpiReaded to print subprotocols
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 78c3e604d..5ec188be5 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -123,14 +123,16 @@ extern "C" { * @param dst void pointer to the destination subscriber state machine * @return returns the detected ID of the protocol */ - unsigned int - ndpi_detection_process_packet(struct ndpi_detection_module_struct *ndpi_struct, - struct ndpi_flow_struct *flow, - const unsigned char *packet, - const unsigned short packetlen, - const u_int64_t current_tick, - struct ndpi_id_struct *src, - struct ndpi_id_struct *dst); + u_int16_t ndpi_detection_process_packet(struct ndpi_detection_module_struct *ndpi_struct, + struct ndpi_flow_struct *flow, + const unsigned char *packet, + const unsigned short packetlen, + const u_int64_t current_tick, + struct ndpi_id_struct *src, + struct ndpi_id_struct *dst); + + u_int16_t ndpi_get_flow_masterprotocol(struct ndpi_detection_module_struct *ndpi_struct, + struct ndpi_flow_struct *flow); #define NDPI_DETECTION_ONLY_IPV4 ( 1 << 0 ) #define NDPI_DETECTION_ONLY_IPV6 ( 1 << 1 ) |