Skip to content

Commit

Permalink
Added flow lifetime options
Browse files Browse the repository at this point in the history
  • Loading branch information
max197616 committed Jun 21, 2018
1 parent cb95e36 commit 2196321
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ void extFilter::initParams()
prm->memory_configs.ipv4.recs_number = _calc_number_recs(_nb_lcore_params, prm->memory_configs.ipv4.flows_number);
prm->memory_configs.ipv6.recs_number = _calc_number_recs(_nb_lcore_params, prm->memory_configs.ipv6.flows_number);

prm->flow_lifetime[0] = 30;
prm->flow_lifetime[1] = 300;
uint64_t lifetime = config().getInt("dpi.lifetime_short", 30);
prm->flow_lifetime[0] = lifetime;
lifetime = config().getInt("dpi.lifetime_long", 300);
prm->flow_lifetime[1] = lifetime;

int http_entries = config().getInt("dpi.http_entries", 0);
if(http_entries)
Expand Down

0 comments on commit 2196321

Please sign in to comment.