TSG-21855 使用fieldstat4序列化Intercept Policy的metric并输出到kafka
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user