Squashed commit of the following:
commit
c5482358cf1437daeab531673b1f96cb96580ea3
Author: Masud Hasan <mashasan@cisco.com>
Date: Sat Jul 24 23:54:31 2021 -0400
stream_tcp: Skip unordered segments if last flushed position already moved past
total_bytes_queued = 0;
total_segs_queued = 0;
overlap_count = 0;
- scan_total = 0;
tsd = nullptr;
left = nullptr;
uint32_t total_bytes_queued; /* total bytes queued (life of session) */
uint32_t total_segs_queued; /* number of segments queued (life) */
uint32_t overlap_count; /* overlaps encountered */
- uint32_t scan_total;
uint32_t seq;
uint32_t seq_end;
if ( trs.sos.keep_segment )
{
+ if ( !trs.sos.left and trs.sos.right and
+ paf_initialized(&trs.paf_state) and trs.paf_state.pos > tsd.get_seq() )
+ {
+ return;
+ }
+
/* Adjust slide so that is correct relative to orig seq */
trs.sos.slide = trs.sos.seq - tsd.get_seq();
// FIXIT-L for some reason length - slide - trunc_len is sometimes negative