feature: TSG-17786 TFE增加对intercept策略的排序功能
This commit is contained in:
@@ -271,7 +271,6 @@ static int mpack_parse_array(struct ctrl_pkt_parser *handler, mpack_node_t node,
|
||||
static int proxy_parse_messagepack(mpack_node_t node, void *ctx, void *logger)
|
||||
{
|
||||
int ret = 0;
|
||||
uint64_t tfe_policy_max_id = 0;
|
||||
struct ctrl_pkt_parser *handler = (struct ctrl_pkt_parser *)ctx;
|
||||
|
||||
if (mpack_node_is_nil(mpack_node_map_cstr(node, "rule_ids")))
|
||||
@@ -282,12 +281,6 @@ static int proxy_parse_messagepack(mpack_node_t node, void *ctx, void *logger)
|
||||
handler->tfe_policy_id_num = mpack_node_array_length(mpack_node_map_cstr(node, "rule_ids"));
|
||||
for (int i = 0; i < handler->tfe_policy_id_num; i++) {
|
||||
handler->tfe_policy_ids[i] = mpack_node_u64(mpack_node_array_at(mpack_node_map_cstr(node, "rule_ids"), i));
|
||||
if (tfe_policy_max_id < handler->tfe_policy_ids[i])
|
||||
tfe_policy_max_id = handler->tfe_policy_ids[i];
|
||||
}
|
||||
|
||||
if (handler->tfe_policy_id_num) {
|
||||
tfe_cmsg_set(handler->cmsg, TFE_CMSG_POLICY_ID, (const unsigned char *)&tfe_policy_max_id, sizeof(uint64_t));
|
||||
}
|
||||
|
||||
mpack_node_t tcp_handshake = mpack_node_map_cstr(node, "tcp_handshake");
|
||||
|
||||
Reference in New Issue
Block a user