From 3e8d1108353ab50f400799581d1ced1df9f37f9f Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Sun, 19 Feb 2017 17:14:50 +0200 Subject: fix trex351. Small fix to how we handle late latency stream packets Signed-off-by: Ido Barnea --- src/stateless/rx/trex_stateless_rx_core.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stateless/rx/trex_stateless_rx_core.cpp b/src/stateless/rx/trex_stateless_rx_core.cpp index 00c18082..b75b0e8f 100644 --- a/src/stateless/rx/trex_stateless_rx_core.cpp +++ b/src/stateless/rx/trex_stateless_rx_core.cpp @@ -38,8 +38,10 @@ void CRFC2544Info::create() { // after calling stop, packets still arriving will be considered error void CRFC2544Info::stop() { - m_prev_flow_seq = m_exp_flow_seq; - m_exp_flow_seq = FLOW_STAT_PAYLOAD_INITIAL_FLOW_SEQ; + if (m_exp_flow_seq != FLOW_STAT_PAYLOAD_INITIAL_FLOW_SEQ) { + m_prev_flow_seq = m_exp_flow_seq; + m_exp_flow_seq = FLOW_STAT_PAYLOAD_INITIAL_FLOW_SEQ; + } } void CRFC2544Info::reset() { -- cgit 1.2.3-korg