Skype CallIn/CallOut are not set as
Skype.SkypeCallOut Skype.SkypeCallIn
This commit is contained in:
+5
-7
@@ -3774,14 +3774,12 @@ ndpi_protocol ndpi_detection_giveup(struct ndpi_detection_module_struct *ndpi_st
|
|||||||
&& (flow->guessed_protocol_id == NDPI_PROTOCOL_STUN)) {
|
&& (flow->guessed_protocol_id == NDPI_PROTOCOL_STUN)) {
|
||||||
check_stun_export:
|
check_stun_export:
|
||||||
if(flow->protos.stun.num_processed_pkts > 0) {
|
if(flow->protos.stun.num_processed_pkts > 0) {
|
||||||
u_int proto;
|
if(flow->protos.stun.num_processed_pkts >= 8) {
|
||||||
|
u_int16_t proto = (flow->protos.stun.num_binding_requests < 4) ? NDPI_PROTOCOL_SKYPE_CALL_IN : NDPI_PROTOCOL_SKYPE_CALL_OUT;
|
||||||
|
|
||||||
if(flow->protos.stun.num_processed_pkts >= 8)
|
ndpi_set_detected_protocol(ndpi_struct, flow, proto, NDPI_PROTOCOL_SKYPE);
|
||||||
proto = (flow->protos.stun.num_binding_requests < 4) ? NDPI_PROTOCOL_SKYPE_CALL_IN : NDPI_PROTOCOL_SKYPE_CALL_OUT;
|
} else
|
||||||
else
|
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_STUN, flow->guessed_host_protocol_id);
|
||||||
proto = NDPI_PROTOCOL_STUN;
|
|
||||||
|
|
||||||
ndpi_set_detected_protocol(ndpi_struct, flow, proto, flow->guessed_host_protocol_id);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ void ndpi_search_stun(struct ndpi_detection_module_struct *ndpi_struct, struct n
|
|||||||
NDPI_LOG_INFO(ndpi_struct, "found Skype\n");
|
NDPI_LOG_INFO(ndpi_struct, "found Skype\n");
|
||||||
|
|
||||||
if((flow->protos.stun.num_processed_pkts >= 8) || (flow->protos.stun.num_binding_requests >= 4))
|
if((flow->protos.stun.num_processed_pkts >= 8) || (flow->protos.stun.num_binding_requests >= 4))
|
||||||
ndpi_int_stun_add_connection(ndpi_struct, (flow->protos.stun.num_binding_requests < 4) ? NDPI_PROTOCOL_SKYPE_CALL_IN : NDPI_PROTOCOL_SKYPE_CALL_OUT, flow);
|
ndpi_set_detected_protocol(ndpi_struct, flow, (flow->protos.stun.num_binding_requests < 4) ? NDPI_PROTOCOL_SKYPE_CALL_IN : NDPI_PROTOCOL_SKYPE_CALL_OUT, NDPI_PROTOCOL_SKYPE);
|
||||||
} else {
|
} else {
|
||||||
NDPI_LOG_INFO(ndpi_struct, "found UDP stun\n"); /* Ummmmm we're in the TCP branch. This code looks bad */
|
NDPI_LOG_INFO(ndpi_struct, "found UDP stun\n"); /* Ummmmm we're in the TCP branch. This code looks bad */
|
||||||
ndpi_int_stun_add_connection(ndpi_struct,
|
ndpi_int_stun_add_connection(ndpi_struct,
|
||||||
@@ -211,9 +211,7 @@ void ndpi_search_stun(struct ndpi_detection_module_struct *ndpi_struct, struct n
|
|||||||
NDPI_LOG_INFO(ndpi_struct, "Found Skype\n");
|
NDPI_LOG_INFO(ndpi_struct, "Found Skype\n");
|
||||||
|
|
||||||
if((flow->protos.stun.num_processed_pkts >= 8) || (flow->protos.stun.num_binding_requests >= 4))
|
if((flow->protos.stun.num_processed_pkts >= 8) || (flow->protos.stun.num_binding_requests >= 4))
|
||||||
ndpi_int_stun_add_connection(ndpi_struct,
|
ndpi_set_detected_protocol(ndpi_struct, flow, (flow->protos.stun.num_binding_requests < 4) ? NDPI_PROTOCOL_SKYPE_CALL_IN : NDPI_PROTOCOL_SKYPE_CALL_OUT, NDPI_PROTOCOL_SKYPE);
|
||||||
(flow->protos.stun.num_binding_requests < 4) ? NDPI_PROTOCOL_SKYPE_CALL_IN : NDPI_PROTOCOL_SKYPE_CALL_OUT,
|
|
||||||
flow);
|
|
||||||
} else {
|
} else {
|
||||||
NDPI_LOG_INFO(ndpi_struct, "found UDP stun\n");
|
NDPI_LOG_INFO(ndpi_struct, "found UDP stun\n");
|
||||||
ndpi_int_stun_add_connection(ndpi_struct,
|
ndpi_int_stun_add_connection(ndpi_struct,
|
||||||
|
|||||||
Reference in New Issue
Block a user