TSG-22707 Adaptation of DB indicates changes, fixes self-check process testing issues

This commit is contained in:
fengweihao
2024-10-16 16:16:44 +08:00
parent 8e38bbcf48
commit 48cba684fe
9 changed files with 82 additions and 98 deletions

View File

@@ -247,12 +247,12 @@ void app_dict_table_new_cb(const char *table_name, const char* key, const char*
app_dict->app_id = item->valueint;
}
item = cJSON_GetObjectItem(app_id_dict_json, "uuid");
item = cJSON_GetObjectItem(app_id_dict_json, "object_uuid");
if(item && item->type==cJSON_String)
{
uuid_parse(item->valuestring, app_dict->object_uuid);
}
cJSON_Delete(app_id_dict_json);
app_dict->ref_cnt=1;
pthread_mutex_init(&(app_dict->lock), NULL);

View File

@@ -458,7 +458,7 @@ int tfe_scan_port(const struct tfe_stream *stream, uuid_t *result, struct maat_s
return hit_cnt_port;
}
#define PROTOCOL_TCP_UUID_ID "6"
#define PROTOCOL_TCP_UUID_ID "00000000-0000-0000-0000-000000000006"
int tfe_scan_ipv4_addr(const struct tfe_stream *stream, uuid_t *result, struct maat_state *scan_mid, int hit_cnt, struct ipaddr sapp_addr)
{
int scan_ret = 0;