Merge pull request #200 from alagoutte/typo

Fix some typo
This commit is contained in:
Luca Deri
2016-05-23 21:38:36 +02:00
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -65,7 +65,7 @@ static int quic_len(u_int8_t l) {
return(8);
break;
}
return(0); /* NOTREACHED */
}
@@ -90,13 +90,13 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct,
int i;
if((version_len > 0) && (packet->payload[1+cid_len] != 'Q'))
goto no_quic;
goto no_quic;
NDPI_LOG(NDPI_PROTOCOL_QUIC, ndpi_struct, NDPI_LOG_DEBUG, "found QUIC.\n");
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_QUIC, NDPI_PROTOCOL_UNKNOWN);
if(!strncmp((char*)&packet->payload[quic_hlen+17], "CHLO" /* Client Hello */, 4)) {
/* Check if SNI (Server Name Indetification) is present */
/* Check if SNI (Server Name Identification) is present */
for(i=quic_hlen+12; i<udp_len-3; i++) {
if((packet->payload[i] == 'S')
&& (packet->payload[i+1] == 'N')
@@ -106,10 +106,10 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct,
u_int32_t prev_offset = *((u_int32_t*)&packet->payload[i-4]);
int len = offset-prev_offset;
int sni_offset = i+prev_offset+1;
while((packet->payload[sni_offset] == '-') && (sni_offset < udp_len))
sni_offset++;
if((sni_offset+len) < udp_len) {
int max_len = sizeof(flow->host_server_name)-1, j = 0;
+2 -2
View File
@@ -150,8 +150,8 @@ void ndpi_check_rx(struct ndpi_detection_module_struct *ndpi_struct,
found = 1;
else {
NDPI_LOG(NDPI_PROTOCOL_RX, ndpi_struct, NDPI_LOG_DEBUG, "excluding RX\n");
NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_RX);
return;
NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_RX);
return;
}
}
else {