Code cleanup and safety checks in the fragment manager (#1129)
This commit is contained in:
+110
-39
@@ -1896,45 +1896,67 @@ void free_fragment(fragments_wrapper_t *frag) {
|
|||||||
/* ******************************************************************** */
|
/* ******************************************************************** */
|
||||||
|
|
||||||
uint8_t add_segment_to_buffer(struct ndpi_flow_struct *flow, struct ndpi_tcphdr const * tcph, uint32_t new_expected_seq) {
|
uint8_t add_segment_to_buffer(struct ndpi_flow_struct *flow, struct ndpi_tcphdr const * tcph, uint32_t new_expected_seq) {
|
||||||
DBGINFO("[flow:%p], dir: %d, seq:%u, ack:%u, len: %ubytes",flow,flow->packet.packet_direction, ntohl(tcph->seq), ntohl(tcph->ack_seq), flow->packet.payload_packet_len)
|
DBGINFO("[flow:%p], dir: %d, seq:%u, ack:%u, len: %ubytes",
|
||||||
|
flow, flow->packet.packet_direction, ntohl(tcph->seq), ntohl(tcph->ack_seq), flow->packet.payload_packet_len)
|
||||||
|
|
||||||
if (flow->tcp_segments_management) {
|
if (flow->tcp_segments_management) {
|
||||||
fragments_wrapper_t *fragW= &flow->tcp_segments_list[flow->packet.packet_direction];
|
fragments_wrapper_t *fragW= &flow->tcp_segments_list[flow->packet.packet_direction];
|
||||||
DBGTRACER("tcp segments management enabled (list container: %p)",fragW)
|
DBGTRACER("tcp segments management enabled (list container: %p)",fragW)
|
||||||
|
|
||||||
if (fragW->ct_frag == 0) {
|
if (fragW->ct_frag == 0) {
|
||||||
if (fragW->fragments_list) { free_fragment(fragW); }
|
if (fragW->fragments_list)
|
||||||
|
free_fragment(fragW);
|
||||||
|
|
||||||
// initialize the offset with the first fragment seq number
|
// initialize the offset with the first fragment seq number
|
||||||
fragW->initial_offset = new_expected_seq;
|
fragW->initial_offset = new_expected_seq;
|
||||||
DBGTRACER("initialized initial_offset: %u)",fragW->initial_offset)
|
DBGTRACER("initialized initial_offset: %u)",fragW->initial_offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flow->packet.payload_packet_len>0) {
|
if (flow->packet.payload_packet_len>0) {
|
||||||
|
uint32_t seq;
|
||||||
|
|
||||||
// allocate memory for pointer
|
// allocate memory for pointer
|
||||||
size_t new_len= (1+fragW->ct_frag) * sizeof(fragment_t*);
|
size_t new_len= (1+fragW->ct_frag) * sizeof(fragment_t*);
|
||||||
DBGTRACER("actual fragment list ct=%d, new size: %llu", fragW->ct_frag, (unsigned long long)new_len)
|
DBGTRACER("actual fragment list ct=%d, new size: %llu", fragW->ct_frag, (unsigned long long)new_len)
|
||||||
//fragW->fragments_list= realloc(fragW->fragments_list,new_len);
|
|
||||||
fragW->fragments_list = ndpi_realloc(fragW->fragments_list,(fragW->ct_frag * sizeof(fragment_t*)),new_len);
|
fragW->fragments_list = ndpi_realloc(fragW->fragments_list,(fragW->ct_frag * sizeof(fragment_t*)),new_len);
|
||||||
DBGPOINTER("fragments_list initialized for item no. %u, list->%p i-esimo->%p", fragW->ct_frag, fragW->fragments_list, fragW->fragments_list[fragW->ct_frag])
|
if (fragW->fragments_list == NULL) {
|
||||||
if ( !fragW->fragments_list ) {
|
|
||||||
flow->tcp_segments_management= 0;
|
flow->tcp_segments_management= 0;
|
||||||
fprintf(stderr, "[%8u] Not enough memory for new fragment \n", flow->packet_counter);
|
fprintf(stderr, "[%8u] Not enough memory for new fragment \n", flow->packet_counter);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBGPOINTER("fragments_list initialized for item no. %u, list->%p i-esimo->%p",
|
||||||
|
fragW->ct_frag, fragW->fragments_list, fragW->fragments_list[fragW->ct_frag])
|
||||||
|
|
||||||
// allocate memory for item
|
// allocate memory for item
|
||||||
fragment_t *new_frag = (fragment_t*)ndpi_calloc(1, sizeof(fragment_t));
|
fragment_t *new_frag = (fragment_t*)ndpi_calloc(1, sizeof(fragment_t));
|
||||||
DBGPOINTER("new_frag=> %p",new_frag)
|
if (new_frag == NULL) {
|
||||||
if ( !new_frag ) {
|
|
||||||
flow->tcp_segments_management= 0;
|
flow->tcp_segments_management= 0;
|
||||||
free_fragment(fragW);
|
free_fragment(fragW);
|
||||||
fprintf(stderr, "[%8u] Not enough memory for new fragment \n", flow->packet_counter);
|
fprintf(stderr, "[%8u] Not enough memory for new fragment \n", flow->packet_counter);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBGPOINTER("new_frag=> %p",new_frag)
|
||||||
|
|
||||||
// fill item with offsetm len and data fragment/segment
|
// fill item with offsetm len and data fragment/segment
|
||||||
new_frag->offset= ( 0xffffffff & ntohl(tcph->seq)) - fragW->initial_offset;
|
seq = (0xffffffff & ntohl(tcph->seq));
|
||||||
DBGTRACER("offset calculation: seq %u, init: %u, offset result: %u", ntohl(tcph->seq), fragW->initial_offset, new_frag->offset)
|
if (seq >= fragW->initial_offset /* safety check */) {
|
||||||
|
new_frag->offset = seq - fragW->initial_offset;
|
||||||
|
} else {
|
||||||
|
/* CHECK THIS CASE
|
||||||
|
fprintf(stderr, "[%8u] Bad seq or initial offset (seq = %u, initial offset = %u)\n",
|
||||||
|
flow->packet_counter, seq, fragW->initial_offset);
|
||||||
|
*/
|
||||||
|
flow->tcp_segments_management= 0;
|
||||||
|
ndpi_free(new_frag);
|
||||||
|
free_fragment(fragW);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
DBGTRACER("offset calculation: seq %u, init: %u, offset result: %u", ntohl(tcph->seq),
|
||||||
|
fragW->initial_offset, new_frag->offset)
|
||||||
new_frag->len= flow->packet.payload_packet_len;
|
new_frag->len= flow->packet.payload_packet_len;
|
||||||
|
|
||||||
new_frag->data = (void*)ndpi_calloc(new_frag->len, sizeof(char));
|
new_frag->data = (void*)ndpi_calloc(new_frag->len, sizeof(char));
|
||||||
@@ -1950,10 +1972,14 @@ uint8_t add_segment_to_buffer( struct ndpi_flow_struct *flow, struct ndpi_tcphdr
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DBGINFO("item no. %u: %p->%p [off:%u, len:%u, data:%p]", fragW->ct_frag, fragW->fragments_list, *fragW->fragments_list, (unsigned int) new_frag->offset, (unsigned int)new_frag->len, new_frag->data)
|
DBGINFO("item no. %u: %p->%p [off:%u, len:%u, data:%p]",
|
||||||
|
fragW->ct_frag, fragW->fragments_list, *fragW->fragments_list,
|
||||||
|
(unsigned int) new_frag->offset, (unsigned int)new_frag->len, new_frag->data)
|
||||||
|
|
||||||
return fragW->ct_frag;
|
return fragW->ct_frag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1962,37 +1988,45 @@ uint8_t add_segment_to_buffer( struct ndpi_flow_struct *flow, struct ndpi_tcphdr
|
|||||||
/* ******************************************************************** */
|
/* ******************************************************************** */
|
||||||
|
|
||||||
uint32_t reassembly_fragment(struct ndpi_flow_struct *const flow, struct ndpi_tcphdr const * tcph, uint8_t **ret_buffer, size_t *len_buffer) {
|
uint32_t reassembly_fragment(struct ndpi_flow_struct *const flow, struct ndpi_tcphdr const * tcph, uint8_t **ret_buffer, size_t *len_buffer) {
|
||||||
DBGTRACER("tcph:%p, ret_buffer:%p, len_buffer:%u",tcph,ret_buffer,len_buffer);
|
|
||||||
|
|
||||||
// reassemble the fragments...
|
|
||||||
uint32_t ret_value = 0;
|
uint32_t ret_value = 0;
|
||||||
uint16_t last_item = 0;
|
uint16_t last_item = 0;
|
||||||
size_t length=0,tot_length=0; //, offset=0;
|
size_t length = 0,tot_length = 0;
|
||||||
fragments_wrapper_t *fragW= &flow->tcp_segments_list[flow->packet.packet_direction];
|
sorter_index_item_t *sorted_indexes;
|
||||||
|
fragments_wrapper_t *fragW;
|
||||||
|
uint8_t *buffer;
|
||||||
|
|
||||||
|
fragW = &flow->tcp_segments_list[flow->packet.packet_direction];
|
||||||
|
|
||||||
|
DBGTRACER("tcph:%p, ret_buffer:%p, len_buffer:%u", tcph, ret_buffer, len_buffer);
|
||||||
|
|
||||||
// phase 1: calculate the size and fill the indexes array
|
// phase 1: calculate the size and fill the indexes array
|
||||||
DBGINFO("phase 1: init sorter, calculate the size of buffer to reassemble: %u items", fragW->ct_frag);
|
DBGINFO("phase 1: init sorter, calculate the size of buffer to reassemble: %u items", fragW->ct_frag);
|
||||||
sorter_index_item_t *sorted_indexes= ndpi_calloc( fragW->ct_frag, sizeof(sorter_index_item_t) );
|
|
||||||
|
|
||||||
DBGPOINTER("sorted_indexes=> %p",sorted_indexes)
|
sorted_indexes = ndpi_calloc(fragW->ct_frag, sizeof(sorter_index_item_t));
|
||||||
if ( !sorted_indexes ) {
|
|
||||||
|
if (sorted_indexes == NULL) {
|
||||||
fprintf(stderr, "[%8u] Not enough memory to sort the %u segments \n",
|
fprintf(stderr, "[%8u] Not enough memory to sort the %u segments \n",
|
||||||
flow->packet_counter, fragW->ct_frag);
|
flow->packet_counter, fragW->ct_frag);
|
||||||
free_fragment(fragW);
|
free_fragment(fragW);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBGPOINTER("sorted_indexes=> %p", sorted_indexes)
|
||||||
|
|
||||||
for (int i=0; i<fragW->ct_frag; i++) {
|
for (int i=0; i<fragW->ct_frag; i++) {
|
||||||
fragment_t *item = (fragment_t*)fragW->fragments_list[i];
|
fragment_t *item = (fragment_t*)fragW->fragments_list[i];
|
||||||
|
|
||||||
sorted_indexes[i].sort_value = item->offset;
|
sorted_indexes[i].sort_value = item->offset;
|
||||||
sorted_indexes[i].item_index = i;
|
sorted_indexes[i].item_index = i;
|
||||||
tot_length += item->len;
|
tot_length += item->len;
|
||||||
DBGTRACER("segment (%d): len:%lu, offset: %u => partial buffer len: %lu", i, (long unsigned int)item->len, (unsigned int)item->offset, (long unsigned int)tot_length);
|
|
||||||
|
DBGTRACER("segment (%d): len:%lu, offset: %u => partial buffer len: %lu",
|
||||||
|
i, (long unsigned int)item->len, (unsigned int)item->offset, (long unsigned int)tot_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
// phase 2: sorts fragments and check fragments and sequences
|
// phase 2: sorts fragments and check fragments and sequences
|
||||||
DBGINFO(" phase 2 sorting %d segments and checking",fragW->ct_frag);
|
DBGINFO(" phase 2 sorting %d segments and checking",fragW->ct_frag);
|
||||||
|
|
||||||
if (fragW->ct_frag>1) shell_sort_array(sorted_indexes, fragW->ct_frag);
|
if (fragW->ct_frag>1) shell_sort_array(sorted_indexes, fragW->ct_frag);
|
||||||
|
|
||||||
// checks
|
// checks
|
||||||
@@ -2000,23 +2034,35 @@ uint32_t reassembly_fragment(struct ndpi_flow_struct *const flow, struct ndpi_tc
|
|||||||
fragment_t *item = (fragment_t*)fragW->fragments_list[ sorted_indexes[i].item_index ];
|
fragment_t *item = (fragment_t*)fragW->fragments_list[ sorted_indexes[i].item_index ];
|
||||||
|
|
||||||
// 1: no segment offset can be > tot_length
|
// 1: no segment offset can be > tot_length
|
||||||
DBGTRACER("checking %d/%d element: offset=%lu vs t_length=%lu",i,sorted_indexes[i].item_index,(unsigned long)item->offset,(unsigned long)tot_length);
|
DBGTRACER("checking %d/%d element: offset=%lu vs t_length=%lu",
|
||||||
if ( (item->offset) > (uint32_t)tot_length ) {
|
i, sorted_indexes[i].item_index, (unsigned long)item->offset, (unsigned long)tot_length);
|
||||||
|
|
||||||
|
if (item->offset > (uint32_t)tot_length) {
|
||||||
// update the last index of elements to elaborate
|
// update the last index of elements to elaborate
|
||||||
DBGINFO("stop processing at %d/%d element: len= %u; offset= %u",i,sorted_indexes[i].item_index,(unsigned)length,(unsigned)item->offset)
|
DBGINFO("stop processing at %d/%d element: len= %u; offset= %u",
|
||||||
|
i, sorted_indexes[i].item_index, (unsigned)length, (unsigned)item->offset)
|
||||||
|
|
||||||
tot_length = length;
|
tot_length = length;
|
||||||
ret_value= (fragW->initial_offset)+(item->offset); // set the first offset to wait for the next segment
|
|
||||||
|
// set the first offset to wait for the next segment
|
||||||
|
ret_value = fragW->initial_offset + item->offset;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
// 2: for every len(buffer) must exists a offset fragment
|
// 2: for every len(buffer) must exists a offset fragment
|
||||||
else if ( (item->offset) != (uint32_t)length ) {
|
} else if (item->offset != (uint32_t)length) {
|
||||||
|
|
||||||
// update the last index of elements to elaborate
|
// update the last index of elements to elaborate
|
||||||
DBGINFO("checking %d/%d element: stop processing! len: %u; n_offset: %u", i,sorted_indexes[i].item_index,(unsigned)length,(unsigned)item->offset);
|
DBGINFO("checking %d/%d element: stop processing! len: %u; n_offset: %u",
|
||||||
|
i, sorted_indexes[i].item_index, (unsigned)length, (unsigned)item->offset);
|
||||||
|
|
||||||
tot_length = length;
|
tot_length = length;
|
||||||
ret_value= (fragW->initial_offset)+(item->offset); // set the first offset to wait for the next segment
|
|
||||||
|
// set the first offset to wait for the next segment
|
||||||
|
ret_value = fragW->initial_offset + item->offset;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// continue to sum length data bytes
|
// continue to sum length data bytes
|
||||||
length+= item->len;
|
length+= item->len;
|
||||||
@@ -2028,21 +2074,25 @@ uint32_t reassembly_fragment(struct ndpi_flow_struct *const flow, struct ndpi_tc
|
|||||||
// phase 3: allocate memory and fill the buffer
|
// phase 3: allocate memory and fill the buffer
|
||||||
DBGINFO("phase 3: allocate memory for %u items and fill the buffer tot: %lu", last_item, (unsigned long int)tot_length);
|
DBGINFO("phase 3: allocate memory for %u items and fill the buffer tot: %lu", last_item, (unsigned long int)tot_length);
|
||||||
|
|
||||||
uint8_t *buffer= ndpi_calloc(tot_length, sizeof(uint8_t));
|
buffer = ndpi_calloc(tot_length, sizeof(uint8_t));
|
||||||
|
|
||||||
DBGPOINTER("buffer (len:%lu)=> %p",(unsigned long)tot_length,buffer);
|
if (buffer == NULL) {
|
||||||
if ( !buffer ) {
|
fprintf(stderr, "[%8u] Not enough memory for buffer for %u segments \n",
|
||||||
fprintf(stderr, "[%8u] Not enough memory for buffer for %u segments \n", flow->packet_counter,last_item);
|
flow->packet_counter,last_item);
|
||||||
free_fragment(fragW);
|
free_fragment(fragW);
|
||||||
ndpi_free(sorted_indexes);
|
ndpi_free(sorted_indexes);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBGPOINTER("buffer (len:%lu)=> %p", (unsigned long)tot_length, buffer);
|
||||||
|
|
||||||
for (uint i=0; i<last_item; i++) {
|
for (uint i=0; i<last_item; i++) {
|
||||||
fragment_t *item = (fragment_t*) fragW->fragments_list[sorted_indexes[i].item_index];
|
fragment_t *item = (fragment_t*) fragW->fragments_list[sorted_indexes[i].item_index];
|
||||||
|
|
||||||
//uint_t blk_sz= (tot_length - item->offset) > item->len ) ? item->len : tot_length-item->offset
|
DBGINFO("copying data item no:%u of len: %lu to buffer: %p (offset:%lu)",
|
||||||
DBGINFO("copying data item no:%u of len: %lu to buffer: %p (offset:%lu)", sorted_indexes[i].item_index, (unsigned long int)item->len, buffer, (unsigned long int)item->offset);
|
sorted_indexes[i].item_index, (unsigned long int)item->len, buffer,
|
||||||
|
(unsigned long int)item->offset);
|
||||||
|
|
||||||
memcpy((void*)(buffer + item->offset), item->data, item->len);
|
memcpy((void*)(buffer + item->offset), item->data, item->len);
|
||||||
|
|
||||||
// free memory item
|
// free memory item
|
||||||
@@ -2059,7 +2109,10 @@ uint32_t reassembly_fragment(struct ndpi_flow_struct *const flow, struct ndpi_tc
|
|||||||
// phase 4: re-organize the other segments, updating the list
|
// phase 4: re-organize the other segments, updating the list
|
||||||
fragment_t **fragW_old_list = fragW->fragments_list;
|
fragment_t **fragW_old_list = fragW->fragments_list;
|
||||||
fragW->fragments_list = ndpi_calloc((fragW->ct_frag-last_item), sizeof(struct fragment_t*));
|
fragW->fragments_list = ndpi_calloc((fragW->ct_frag-last_item), sizeof(struct fragment_t*));
|
||||||
DBGPOINTER("old segments list: %p, new segments list: %p.",fragW_old_list, fragW->fragments_list);
|
|
||||||
|
DBGPOINTER("old segments list: %p, new segments list: %p.",
|
||||||
|
fragW_old_list, fragW->fragments_list);
|
||||||
|
|
||||||
if (!fragW->fragments_list) {
|
if (!fragW->fragments_list) {
|
||||||
fprintf(stderr, "[%8u] Not enough memory for new segments list \n", flow->packet_counter);
|
fprintf(stderr, "[%8u] Not enough memory for new segments list \n", flow->packet_counter);
|
||||||
free_fragment(fragW);
|
free_fragment(fragW);
|
||||||
@@ -2070,15 +2123,28 @@ uint32_t reassembly_fragment(struct ndpi_flow_struct *const flow, struct ndpi_tc
|
|||||||
|
|
||||||
// re-fill the new segments list, updating the offsets
|
// re-fill the new segments list, updating the offsets
|
||||||
for (uint i = last_item; i < fragW->ct_frag; i++) {
|
for (uint i = last_item; i < fragW->ct_frag; i++) {
|
||||||
fragW->fragments_list[i-last_item] = (fragment_t*)fragW_old_list[sorted_indexes[i].item_index];
|
fragment_t *item = (fragment_t*)fragW_old_list[sorted_indexes[i].item_index];
|
||||||
fragW->fragments_list[i-last_item]->offset-= tot_length;
|
fragW->fragments_list[i-last_item] = item;
|
||||||
DBGTRACER("moving the item (%p), index %u - to position %u of new segments list; new offset: %u.", fragW->fragments_list[i-last_item], sorted_indexes[i].item_index, i-last_item, fragW->fragments_list[i-last_item]->offset );
|
if (item->offset >= tot_length /* safety check */) {
|
||||||
|
item->offset -= tot_length;
|
||||||
|
}
|
||||||
|
/* CHECK THIS CASE
|
||||||
|
else {
|
||||||
|
fprintf(stderr, "[%8u] Bad offset update (item->offset = %u, tot_length = %lu)\n",
|
||||||
|
flow->packet_counter, item->offset, tot_length);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
DBGTRACER("moving the item (%p), index %u - to position %u of new segments list; new offset: %u.",
|
||||||
|
item, sorted_indexes[i].item_index, i-last_item, item->offset );
|
||||||
}
|
}
|
||||||
|
|
||||||
// update the fragments countes
|
// update the fragments countes
|
||||||
fragW->ct_frag -= last_item;
|
fragW->ct_frag -= last_item;
|
||||||
fragW->initial_offset += tot_length;
|
fragW->initial_offset += tot_length;
|
||||||
DBGINFO("updated counter: %d and i_offset: %u.",(unsigned)fragW->ct_frag, (unsigned)fragW->initial_offset);
|
|
||||||
|
DBGINFO("updated counter: %d and i_offset: %u.",
|
||||||
|
(unsigned)fragW->ct_frag, (unsigned)fragW->initial_offset);
|
||||||
|
|
||||||
DBGPOINTER("freeing old segments list: %p ", fragW_old_list)
|
DBGPOINTER("freeing old segments list: %p ", fragW_old_list)
|
||||||
ndpi_free(fragW_old_list);
|
ndpi_free(fragW_old_list);
|
||||||
@@ -2092,14 +2158,18 @@ uint32_t reassembly_fragment(struct ndpi_flow_struct *const flow, struct ndpi_tc
|
|||||||
if(len_buffer != NULL) {
|
if(len_buffer != NULL) {
|
||||||
*len_buffer = tot_length;
|
*len_buffer = tot_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ret_buffer != NULL) {
|
if(ret_buffer != NULL) {
|
||||||
*ret_buffer = (u_int8_t *) buffer;
|
*ret_buffer = (u_int8_t *) buffer;
|
||||||
flow->must_free[flow->packet.packet_direction] = 1;
|
flow->must_free[flow->packet.packet_direction] = 1;
|
||||||
DBGINFO("retrieved the buffer of segments (len:%lu) %p",*len_buffer,*ret_buffer);
|
|
||||||
|
DBGINFO("retrieved the buffer of segments (len:%lu) %p",
|
||||||
|
*len_buffer, *ret_buffer);
|
||||||
} else {
|
} else {
|
||||||
DBGPOINTER("freeing buffer=> %p", buffer);
|
DBGPOINTER("freeing buffer=> %p", buffer);
|
||||||
ndpi_free(buffer);
|
ndpi_free(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
DBGINFO("returning: %d", ret_value);
|
DBGINFO("returning: %d", ret_value);
|
||||||
return ret_value;
|
return ret_value;
|
||||||
}
|
}
|
||||||
@@ -2111,6 +2181,7 @@ uint8_t check_for_sequence( struct ndpi_flow_struct *flow, struct ndpi_tcphdr co
|
|||||||
size_t len_buffer=0;
|
size_t len_buffer=0;
|
||||||
|
|
||||||
DBGINFO("## sorted flags: %d/%d ",flow->not_sorted[0],flow->not_sorted[1]);
|
DBGINFO("## sorted flags: %d/%d ",flow->not_sorted[0],flow->not_sorted[1]);
|
||||||
|
|
||||||
if (flow->next_tcp_seq_nr[flow->packet.packet_direction]) {
|
if (flow->next_tcp_seq_nr[flow->packet.packet_direction]) {
|
||||||
uint32_t *trigger, expected;
|
uint32_t *trigger, expected;
|
||||||
uint8_t *not_sorted;
|
uint8_t *not_sorted;
|
||||||
|
|||||||
Reference in New Issue
Block a user