summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bp_sim.cpp')
-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;