Removed debug code

This commit is contained in:
Luca Deri
2019-01-17 00:42:45 +01:00
parent d088a968a9
commit 85155d5899
2 changed files with 0 additions and 6 deletions
-3
View File
@@ -761,9 +761,6 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa
if((verbose != 1) && (verbose != 2)) if((verbose != 1) && (verbose != 2))
return; return;
if(5222 == ntohs(flow->dst_port))
printf("************\n");
if(!json_flag) { if(!json_flag) {
fprintf(out, "\t%u", id); fprintf(out, "\t%u", id);
-3
View File
@@ -3995,9 +3995,6 @@ ndpi_protocol ndpi_detection_giveup(struct ndpi_detection_module_struct *ndpi_st
if(flow == NULL) return(ret); if(flow == NULL) return(ret);
if(flow->packet.tcp && (5222 == ntohs(flow->packet.tcp->dest)))
printf("%u - %u\n", ntohs(flow->packet.tcp->source), ntohs(flow->packet.tcp->dest));
/* TODO: add the remaining stage_XXXX protocols */ /* TODO: add the remaining stage_XXXX protocols */
if(flow->detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN) { if(flow->detected_protocol_stack[0] == NDPI_PROTOCOL_UNKNOWN) {
u_int16_t guessed_protocol_id, guessed_host_protocol_id; u_int16_t guessed_protocol_id, guessed_host_protocol_id;