diff options
Diffstat (limited to 'src/lib/protocols/bittorrent.c')
-rw-r--r-- | src/lib/protocols/bittorrent.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/protocols/bittorrent.c b/src/lib/protocols/bittorrent.c index d1c9dd323..f80bb0d36 100644 --- a/src/lib/protocols/bittorrent.c +++ b/src/lib/protocols/bittorrent.c @@ -509,8 +509,7 @@ static u_int8_t is_port(u_int16_t a, u_int16_t b, u_int16_t what) { /* ************************************* */ static void ndpi_skip_bittorrent(struct ndpi_detection_module_struct *ndpi_struct, - struct ndpi_flow_struct *flow, - struct ndpi_packet_struct *packet) { + struct ndpi_flow_struct *flow) { if(search_into_bittorrent_cache(ndpi_struct, flow)) ndpi_add_connection_as_bittorrent(ndpi_struct, flow, -1, 0, NDPI_CONFIDENCE_DPI_CACHE); else @@ -553,7 +552,7 @@ static void ndpi_search_bittorrent(struct ndpi_detection_module_struct *ndpi_str if((ntohs(packet->udp->source) < 1024) || (ntohs(packet->udp->dest) < 1024) /* High ports only */) { - ndpi_skip_bittorrent(ndpi_struct, flow, packet); + ndpi_skip_bittorrent(ndpi_struct, flow); return; } @@ -639,12 +638,12 @@ static void ndpi_search_bittorrent(struct ndpi_detection_module_struct *ndpi_str return; } - ndpi_skip_bittorrent(ndpi_struct, flow, packet); + ndpi_skip_bittorrent(ndpi_struct, flow); } } if(flow->packet_counter > 8) { - ndpi_skip_bittorrent(ndpi_struct, flow, packet); + ndpi_skip_bittorrent(ndpi_struct, flow); } } |