summaryrefslogtreecommitdiffstats
path: root/src/rx_check.cpp
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2015-09-02 20:30:33 +0300
committerHanoh Haim <hhaim@cisco.com>2015-09-02 20:30:33 +0300
commit4ad6ed1716dc917a0b80ddfbbefc43c734eeaab6 (patch)
treed4b215558ff4c3507a7ba2cda45e5afc3574bb66 /src/rx_check.cpp
parent83a53d61c3e7db90637cde90f241f3272ccf3e5a (diff)
- fix valgrind gtest simulation errors
- remove 32bit sim images for faster dev
Diffstat (limited to 'src/rx_check.cpp')
-rwxr-xr-xsrc/rx_check.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/rx_check.cpp b/src/rx_check.cpp
index 67ce89e1..3a67ca23 100755
--- a/src/rx_check.cpp
+++ b/src/rx_check.cpp
@@ -243,6 +243,11 @@ bool RxCheckManager::Create(){
m_hist.Create();
m_cur_time=0.00000001;
m_on_drain=false;
+
+ int i;
+ for (i=0; i<MAX_TEMPLATES_STATS;i++ ) {
+ m_template_info[i].reset();
+ }
return (true);
}
@@ -277,11 +282,6 @@ void RxCheckManager::handle_packet(CRx_check_header * rxh){
lf=m_ft.lookup(rxh->m_flow_id);
m_stats.m_lookup++;
- if ((m_stats.m_lookup & 0xff)==0) {
- /* handle aging from time to time */
-
- tw_handle() ;
- }
bool any_err=false;
if ( rxh->is_fif_dir() ) {
@@ -393,6 +393,10 @@ void RxCheckManager::handle_packet(CRx_check_header * rxh){
on_flow_end(lf);
}
+ if ((m_stats.m_lookup & 0xff)==0) {
+ /* handle aging from time to time */
+ tw_handle() ;
+ }
}
void RxCheckManager::update_template_err(uint8_t template_id){