fix trex351. Small fix to how we handle late latency stream packets
authorIdo Barnea <[email protected]>
Sun, 19 Feb 2017 15:14:50 +0000 (17:14 +0200)
committerIdo Barnea <[email protected]>
Sun, 19 Feb 2017 15:15:11 +0000 (17:15 +0200)
Signed-off-by: Ido Barnea <[email protected]>
src/stateless/rx/trex_stateless_rx_core.cpp

index 00c1808..b75b0e8 100644 (file)
@@ -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() {