diff options
| author | root <[email protected]> | 2023-09-28 02:22:51 +0000 |
|---|---|---|
| committer | root <[email protected]> | 2023-09-28 02:22:51 +0000 |
| commit | 38e67120f364de179945cc677d8d3333cb397c21 (patch) | |
| tree | 51b5e1841f027a64c7a5b01377b32ecd26b7e2a4 /shaping/src/shaper_session.cpp | |
| parent | e510917ce787526063bd72dee7ffe661db914142 (diff) | |
add timer for each session, to refresh stat when no packet coming
Diffstat (limited to 'shaping/src/shaper_session.cpp')
| -rw-r--r-- | shaping/src/shaper_session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaping/src/shaper_session.cpp b/shaping/src/shaper_session.cpp index f43f76f..af4a7ee 100644 --- a/shaping/src/shaper_session.cpp +++ b/shaping/src/shaper_session.cpp @@ -30,7 +30,7 @@ struct shaping_flow* shaper_session_opening(struct shaping_thread_ctx *ctx, stru return NULL; } - sf = shaping_flow_new(); + sf = shaping_flow_new(ctx); raw_packet_parser_get_most_inner_tuple4(raw_parser, &sf->tuple4); sf->src_ip_str = addr_src_ip_to_str(&sf->tuple4); sf->src_ip_str_len = strlen(sf->src_ip_str); |
