Dissection improvents

Fixed QUIC dissection
Disabled debug message
This commit is contained in:
Luca Deri
2019-07-11 22:35:50 +02:00
parent da7e595fcf
commit 3e2e616507
3 changed files with 27 additions and 15 deletions
+2 -2
View File
@@ -100,8 +100,8 @@ void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct,
&& (packet->payload[i+1] == 'N')
&& (packet->payload[i+2] == 'I')
&& (packet->payload[i+3] == 0)) {
u_int32_t offset = ntohl(*((u_int32_t*)&packet->payload[i+4]));
u_int32_t prev_offset = ntohl(*((u_int32_t*)&packet->payload[i-4]));
u_int32_t offset = (*((u_int32_t*)&packet->payload[i+4]));
u_int32_t prev_offset = (*((u_int32_t*)&packet->payload[i-4]));
int len = offset-prev_offset;
int sni_offset = i+prev_offset+1;