fieldstat增加health check功能的计数
This commit is contained in:
@@ -1076,6 +1076,7 @@ static int forward_all_nf_packet_to_sf(struct packet_io *handle, marsio_buff_t *
|
||||
}
|
||||
|
||||
s_ctx = session_ctx_new();
|
||||
s_ctx->ref_thread_ctx = thread;
|
||||
s_ctx->session_id = meta.session_id;
|
||||
s_ctx->first_ctrl_pkt.dir_is_e2i = meta.dir_is_e2i;
|
||||
raw_packet_parser_get_most_inner_tuple4(&raw_parser, &inner_tuple4);
|
||||
@@ -1218,6 +1219,7 @@ static int handle_session_opening(struct metadata *meta, struct ctrl_pkt_parser
|
||||
}
|
||||
|
||||
struct session_ctx *s_ctx = session_ctx_new();
|
||||
s_ctx->ref_thread_ctx = thread;
|
||||
fixed_num_array_init(&s_ctx->policy_ids);
|
||||
s_ctx->session_id = meta->session_id;
|
||||
s_ctx->first_ctrl_pkt.dir_is_e2i = meta->dir_is_e2i;
|
||||
@@ -1238,7 +1240,7 @@ static int handle_session_opening(struct metadata *meta, struct ctrl_pkt_parser
|
||||
}
|
||||
else
|
||||
{
|
||||
policy_enforce_select_chaining(s_ctx->chaining, thread->ref_enforcer, &raw_parser, new_policy_id, meta->dir_is_e2i);
|
||||
policy_enforce_select_chaining(s_ctx->chaining, thread->ref_enforcer, &raw_parser, new_policy_id, meta->dir_is_e2i, s_ctx);
|
||||
selected_chaining_bref(s_ctx->chaining);
|
||||
fixed_num_array_add_elem(&s_ctx->policy_ids, new_policy_id);
|
||||
}
|
||||
@@ -1303,7 +1305,7 @@ static int handle_session_active(struct metadata *meta, struct ctrl_pkt_parser *
|
||||
}
|
||||
else
|
||||
{
|
||||
policy_enforce_select_chaining(s_ctx->chaining, thread->ref_enforcer, &raw_parser, new_policy_id, meta->dir_is_e2i);
|
||||
policy_enforce_select_chaining(s_ctx->chaining, thread->ref_enforcer, &raw_parser, new_policy_id, meta->dir_is_e2i, s_ctx);
|
||||
selected_chaining_bref(s_ctx->chaining);
|
||||
fixed_num_array_add_elem(&s_ctx->policy_ids, new_policy_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user