Removed unused type definitions.

Disabled tracing in the example application.
This commit is contained in:
Sorin Zamfir
2016-03-20 13:38:29 +02:00
parent 3dde80ed0f
commit 3213d2205a
2 changed files with 1 additions and 20 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ static u_int8_t undetected_flows_deleted = 0;
/**
* User preferences
*/
static u_int8_t enable_protocol_guess = 1, verbose = 0, nDPI_traceLevel = 2, json_flag = 0;
static u_int8_t enable_protocol_guess = 1, verbose = 0, nDPI_traceLevel = 0, json_flag = 0;
static u_int16_t decode_tunnels = 0;
static u_int16_t num_loops = 1;
static u_int8_t shutdown_app = 0, quiet_mode = 0;
-19
View File
@@ -345,14 +345,6 @@ typedef enum {
HTTP_METHOD_CONNECT
} ndpi_http_method;
typedef enum {
COAP_METHOD_UNKNOWN = 0,
COAP_METHOD_GET,
COAP_METHOD_POST,
COAP_METHOD_PUT,
COAP_METHOD_DELETE
} ndpi_coap_method;
struct ndpi_id_struct {
/**
detected_protocol_bitmask:
@@ -584,9 +576,6 @@ struct ndpi_flow_tcp_struct {
u_int8_t prev_zmq_pkt_len;
u_char prev_zmq_pkt[10];
#endif
#ifdef NDPI_PROTOCOL_MQTT
u_int8_t mqtt_stage:2;
#endif
}
#ifndef WIN32
__attribute__ ((__packed__))
@@ -636,9 +625,6 @@ struct ndpi_flow_udp_struct {
u_int8_t eaq_pkt_id;
u_int32_t eaq_sequence;
#endif
#ifdef NDPI_PROTOCOL_COAP
u_int32_t coap_stage:2;
#endif
}
#ifndef WIN32
__attribute__ ((__packed__))
@@ -921,11 +907,6 @@ struct ndpi_flow_struct {
char *url, *content_type;
} http;
struct {
ndpi_coap_method method;
char *url, *content_type;
} coap;
union {
/* the only fields useful for nDPI and ntopng */