minor fixes - deleted useless part on git and quic protos
This commit is contained in:
@@ -53,8 +53,7 @@ static u_int8_t is_utp_pkt(const u_int8_t *payload, u_int payload_len) {
|
|||||||
|
|
||||||
static void ndpi_add_connection_as_bittorrent(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow,
|
static void ndpi_add_connection_as_bittorrent(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow,
|
||||||
int bt_offset, int check_hash,
|
int bt_offset, int check_hash,
|
||||||
const u_int8_t save_detection, const u_int8_t encrypted_connection/* , */
|
const u_int8_t save_detection, const u_int8_t encrypted_connection)
|
||||||
/* ndpi_protocol_type_t protocol_type */)
|
|
||||||
{
|
{
|
||||||
if(check_hash) {
|
if(check_hash) {
|
||||||
const char *bt_hash = NULL; /* 20 bytes long */
|
const char *bt_hash = NULL; /* 20 bytes long */
|
||||||
@@ -92,8 +91,7 @@ static u_int8_t ndpi_int_search_bittorrent_tcp_zero(struct ndpi_detection_module
|
|||||||
NDPI_LOG(NDPI_PROTOCOL_BITTORRENT,
|
NDPI_LOG(NDPI_PROTOCOL_BITTORRENT,
|
||||||
ndpi_struct, NDPI_LOG_TRACE, "BT: plain BitTorrent protocol detected\n");
|
ndpi_struct, NDPI_LOG_TRACE, "BT: plain BitTorrent protocol detected\n");
|
||||||
ndpi_add_connection_as_bittorrent(ndpi_struct, flow, 19, 1,
|
ndpi_add_connection_as_bittorrent(ndpi_struct, flow, 19, 1,
|
||||||
NDPI_PROTOCOL_SAFE_DETECTION, NDPI_PROTOCOL_PLAIN_DETECTION/* , */
|
NDPI_PROTOCOL_SAFE_DETECTION, NDPI_PROTOCOL_PLAIN_DETECTION);
|
||||||
/* NDPI_REAL_PROTOCOL */);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -125,8 +123,7 @@ static u_int8_t ndpi_int_search_bittorrent_tcp_zero(struct ndpi_detection_module
|
|||||||
NDPI_LOG(NDPI_PROTOCOL_BITTORRENT, ndpi_struct,
|
NDPI_LOG(NDPI_PROTOCOL_BITTORRENT, ndpi_struct,
|
||||||
NDPI_LOG_TRACE, "BT: plain Bitcomet persistent seed protocol detected\n");
|
NDPI_LOG_TRACE, "BT: plain Bitcomet persistent seed protocol detected\n");
|
||||||
ndpi_add_connection_as_bittorrent(ndpi_struct, flow, -1, 1,
|
ndpi_add_connection_as_bittorrent(ndpi_struct, flow, -1, 1,
|
||||||
NDPI_PROTOCOL_SAFE_DETECTION, NDPI_PROTOCOL_WEBSEED_DETECTION/* , */
|
NDPI_PROTOCOL_SAFE_DETECTION, NDPI_PROTOCOL_WEBSEED_DETECTION);
|
||||||
/* NDPI_CORRELATED_PROTOCOL */);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* dropbox.c
|
* dropbox.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011-13 by ntop.org
|
* Copyright (C) 2012-16 by ntop.org
|
||||||
*
|
*
|
||||||
* This file is part of nDPI, an open source deep packet inspection
|
* This file is part of nDPI, an open source deep packet inspection
|
||||||
* library based on the OpenDPI and PACE technology by ipoque GmbH
|
* library based on the OpenDPI and PACE technology by ipoque GmbH
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ void ndpi_search_git(struct ndpi_detection_module_struct *ndpi_struct,
|
|||||||
|
|
||||||
u_int8_t * git_pkt_len_buff = NULL;
|
u_int8_t * git_pkt_len_buff = NULL;
|
||||||
u_int8_t * git_pkt_data = NULL;
|
u_int8_t * git_pkt_data = NULL;
|
||||||
u_int16_t git_len = 0, count = 0 , is_git = 0;
|
u_int16_t git_len = 0, count = 0;
|
||||||
|
|
||||||
if(packet->tcp != NULL) {
|
if(packet->tcp != NULL) {
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "ndpi_api.h"
|
#include "ndpi_api.h"
|
||||||
|
|
||||||
#ifdef NDPI_PROTOCOL_QUIC
|
#ifdef NDPI_PROTOCOL_QUIC
|
||||||
@@ -38,18 +37,6 @@ static int quic_ports(u_int16_t sport, u_int16_t dport)
|
|||||||
|
|
||||||
/* ***************************************************************** */
|
/* ***************************************************************** */
|
||||||
|
|
||||||
static int quic_payload(const u_int8_t *payload) {
|
|
||||||
if((payload[0] == 'Q')
|
|
||||||
&& isdigit(payload[1])
|
|
||||||
&& isdigit(payload[2])
|
|
||||||
&& isdigit(payload[3]))
|
|
||||||
return(1);
|
|
||||||
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ***************************************************************** */
|
|
||||||
|
|
||||||
static int quic_len(u_int8_t l) {
|
static int quic_len(u_int8_t l) {
|
||||||
switch(l) {
|
switch(l) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* tor.c
|
* tor.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 ntop.org
|
* Copyright (C) 2016 ntop.org
|
||||||
* Copyright (C) 2013 Remy Mudingay <mudingay@ill.fr>
|
* Copyright (C) 2013 Remy Mudingay <mudingay@ill.fr>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user