From 4e122537c7c45290272c35721e38c95d9c8ae218 Mon Sep 17 00:00:00 2001 From: Fu Juntang <StrongTiger_001@163.com> Date: 星期五, 03 九月 2021 12:17:36 +0800 Subject: [PATCH] Verify the seriliazed parameters parsing logic. --- src/proc_def.h | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/proc_def.h b/src/proc_def.h index cb4dc0a..1d84362 100644 --- a/src/proc_def.h +++ b/src/proc_def.h @@ -8,7 +8,7 @@ #define MAX_STR_LEN 128 //keep the same with serializer in proc check #define MIN_STR_LEN 10 #define MAX_PROC_NUM 128 -#define MAX_TOPICS_NUN 60 +#define MAX_TOPICS_NUN 60 #define PROC_REG 1 #define PROC_UNREG 2 @@ -16,6 +16,9 @@ #define PROC_QUE_TCS 4 #define PROC_QUE_STCS 5 #define PROC_QUE_ATCS 6 + +#define ID_RSV 16 +#define ABS_ID_RSV 18 #define STR_MAGIC "," @@ -40,9 +43,9 @@ ProcInfo procData; int stat; - char reg_info[MAX_STR_LEN]; - char local_info[MAX_STR_LEN]; - char net_info[MAX_STR_LEN]; + char reg_info[MAX_STR_LEN * MAX_TOPICS_NUN]; + char local_info[MAX_STR_LEN * MAX_TOPICS_NUN]; + char net_info[MAX_STR_LEN * MAX_TOPICS_NUN]; int list_num; -- Gitblit v1.8.0