session manager support output fieldstat

This commit is contained in:
luwenpeng
2024-10-30 17:00:20 +08:00
parent 03864c9731
commit d56cda3d9a
46 changed files with 3208 additions and 3141 deletions

View File

@@ -10,9 +10,10 @@ extern "C"
#include "tuple.h"
#include "uthash.h"
#include "timeout.h"
#include "tcp_reassembly.h"
#include "packet_internal.h"
#include "stellar/session.h"
#include "tcp_reassembly.h"
#include "session_manager_stat.h"
// output format: "${src_addr}:${src_port}-${dst_addr}:${dst_port}-${ip_proto}-${domain}"
// output max len: (46 + 1 + 5) + 1 + (46 + 1 + 5) + 1 + 1 + 1 + 20 = 129
@@ -50,7 +51,7 @@ struct session
struct tcp_segment empty_seg;
TAILQ_ENTRY(session) lru_tqe;
TAILQ_ENTRY(session) free_tqe;
TAILQ_ENTRY(session) evicte_tqe;
TAILQ_ENTRY(session) evc_tqe;
UT_hash_handle hh1;
UT_hash_handle hh2;
UT_hash_handle hh3;
@@ -68,7 +69,7 @@ struct session
enum session_type sess_type;
enum session_state state;
enum closing_reason reason;
struct session_manager_runtime *sess_mgr_rt;
struct session_manager_rte *sess_mgr_rte;
struct session_manager_stat *sess_mgr_stat;
};