TSG-21855 使用fieldstat4序列化Intercept Policy的metric并输出到kafka

This commit is contained in:
wangmenglan
2024-07-24 10:01:47 +08:00
parent dc1ec1dbb3
commit a59b939033
11 changed files with 366 additions and 190 deletions

View File

@@ -211,3 +211,18 @@ struct session_node *session_table_search_by_addr(struct session_table *table, c
return temp;
}
void session_foreach(struct session_table *table, void (*func)(struct session_node *, void *), void *ctx)
{
struct session_node *temp = NULL;
struct session_node *node = NULL;
if (!func)
return;
HASH_ITER(hh1, table->root_by_id, node, temp)
{
func(node, ctx);
}
return;
}