summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2017-01-22 16:04:25 +0200
committerHanoh Haim <hhaim@cisco.com>2017-01-22 16:04:25 +0200
commit57e58214a60b6665e22bb114356233a122d1ef84 (patch)
tree7917e4ad3a3039c1b1cb33593b9eba3f104f687b
parent9fa4e8f9064b021aa51c294c6bfa75926bbb6d54 (diff)
stateful expected with L2 + 4 bytes CRC
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
-rwxr-xr-xsrc/bp_sim.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bp_sim.cpp b/src/bp_sim.cpp
index 5950a80d..aa80c475 100755
--- a/src/bp_sim.cpp
+++ b/src/bp_sim.cpp
@@ -2349,7 +2349,7 @@ enum CCapFileFlowInfo::load_cap_file_err CCapFileFlowInfo::load_cap_file(std::st
pkt_indication.m_desc.SetId(_id);
bool is_fif;
CFlow * lpflow=flow.process(pkt_indication.m_flow_key,is_fif);
- m_total_bytes += pkt_indication.m_packet->pkt_len;
+ m_total_bytes += (pkt_indication.m_packet->pkt_len+4); /* L2 include CRC*/
pkt_indication.m_cap_ipg = raw_packet.get_time();
pkt_indication.m_flow =lpflow;