Squashed commit of the following:
commit
7770b59dee8e8b3d7b93b8dfadbe21a33c746eb5
Author: Mike Redden <miredden@cisco.com>
Date: Wed May 29 15:57:18 2019 -0400
stream: Do not validate timestamp until peer timestamp is set
int TcpNormalizer::validate_paws_timestamp(
TcpNormalizerState& tns, TcpSegmentDescriptor& tsd)
{
- if ( ( (int)( ( tsd.get_ts() - tns.peer_tracker->get_ts_last() ) + tns.paws_ts_fudge ) ) < 0 )
+ const uint32_t peer_ts_last = tns.peer_tracker->get_ts_last();
+ if ( peer_ts_last && ( ( (int)( ( tsd.get_ts() - peer_ts_last ) + tns.paws_ts_fudge ) ) < 0 ) )
{
if ( tsd.get_pkt()->is_retry() )
{